@@ -2058,7 +2058,7 @@ void ColladaParser::ReadSceneNode(XmlNode &node, Node *pNode) {
XmlParser::getStdStrAttribute(currentNode, "id", child->mID);
}
if (XmlParser::hasAttribute(currentNode, "sid")) {
- XmlParser::getStdStrAttribute(currentNode, "id", child->mSID);
+ XmlParser::getStdStrAttribute(currentNode, "sid", child->mSID);
if (XmlParser::hasAttribute(currentNode, "name")) {
XmlParser::getStdStrAttribute(currentNode, "name", child->mName);
@@ -313,6 +313,9 @@ void LWSImporter::SetupNodeName(aiNode *nd, LWS::NodeDesc &src) {
std::string::size_type t = src.path.substr(s).find_last_of('.');
nd->mName.length = ::ai_snprintf(nd->mName.data, MAXLEN, "%s_(%08X)", src.path.substr(s).substr(0, t).c_str(), combined);
+ if (nd->mName.length > MAXLEN) {
+ nd->mName.length = MAXLEN;
+ }
return;
@@ -1,5 +1,9 @@
#include "revision.h"
-#include "winres.h"
+#if defined(__GNUC__) && defined(_WIN32)
+ #include "winresrc.h"
+#else
+ #include "winres.h"
+#endif
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
#pragma code_page(1252)