From: mfranz Date: Sat, 18 Oct 2008 18:44:36 +0000 (+0000) Subject: fix regression: sgLoad3DModel_internal should not make assumptions X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=2ccd58e9172ec8368754e9ca5f4e5915ae851a72;p=simgear.git fix regression: sgLoad3DModel_internal should not make assumptions 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. --- diff --git a/simgear/scene/model/SGReaderWriterXML.cxx b/simgear/scene/model/SGReaderWriterXML.cxx index 7b56bc6f..586b14a2 100644 --- a/simgear/scene/model/SGReaderWriterXML.cxx +++ b/simgear/scene/model/SGReaderWriterXML.cxx @@ -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 animation_nodes;