]> git.mxchange.org Git - simgear.git/commitdiff
fix regression: sgLoad3DModel_internal should not make assumptions
authormfranz <mfranz>
Sat, 18 Oct 2008 18:44:36 +0000 (18:44 +0000)
committermfranz <mfranz>
Sat, 18 Oct 2008 18:44:36 +0000 (18:44 +0000)
about the type of SGModelData. This *can* have to do with Nasal,
but doesn't have to. That's entirely that class instance's business.

simgear/scene/model/SGReaderWriterXML.cxx

index 7b56bc6f910f05575179c3ce276cb511fe858147..586b14a25b09cbf74a4793d6579cc1103caab53e 100644 (file)
@@ -310,10 +310,8 @@ sgLoad3DModel_internal(const string &path,
     }
 
     if (data) {
-        SGPropertyNode *nasal = props->getNode("nasal", false);
-        data->setProps(nasal);
+        data->setProps(props);
         group->setUserData(data);
-        //data->modelLoaded(path, nasal, group.get());
     }
 
     std::vector<SGPropertyNode_ptr> animation_nodes;