Przeglądaj źródła

Fixed an issue with referencing same properties object multiple times in a .scene file.

Fixes #970
sgrenier 12 lat temu
rodzic
commit
ddf083778c
1 zmienionych plików z 1 dodań i 0 usunięć
  1. 1 0
      gameplay/src/SceneLoader.cpp

+ 1 - 0
gameplay/src/SceneLoader.cpp

@@ -226,6 +226,7 @@ void SceneLoader::applyNodeProperty(SceneNode& sceneNode, Node* node, const Prop
             GP_ERROR("The referenced node data at url '%s' failed to load.", snp._url.c_str());
             return;
         }
+        p->rewind();
 
         // If the URL didn't specify a particular namespace within the file, pick the first one.
         p = (strlen(p->getNamespace()) > 0) ? p : p->getNextNamespace();