From 2ccd58e9172ec8368754e9ca5f4e5915ae851a72 Mon Sep 17 00:00:00 2001 From: mfranz Date: Sat, 18 Oct 2008 18:44:36 +0000 Subject: [PATCH] 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. --- simgear/scene/model/SGReaderWriterXML.cxx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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; -- 2.39.5