瀏覽代碼

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

Fixes #970
sgrenier 12 年之前
父節點
當前提交
ddf083778c
共有 1 個文件被更改,包括 1 次插入0 次删除
  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());
             GP_ERROR("The referenced node data at url '%s' failed to load.", snp._url.c_str());
             return;
             return;
         }
         }
+        p->rewind();
 
 
         // If the URL didn't specify a particular namespace within the file, pick the first one.
         // If the URL didn't specify a particular namespace within the file, pick the first one.
         p = (strlen(p->getNamespace()) > 0) ? p : p->getNextNamespace();
         p = (strlen(p->getNamespace()) > 0) ? p : p->getNextNamespace();