From df2e5bf39f605789dd62676d9584bc0933845854 Mon Sep 17 00:00:00 2001 From: Mathias Froehlich Date: Wed, 28 Mar 2012 07:34:36 +0200 Subject: [PATCH] Revert "scenery: Use correct property root in xml loading." This helps for one symptom but it does not fix the underlying problem. So ... This reverts commit 986d2cc42a94d558687be7c52027a9123551b676. --- simgear/scene/model/SGReaderWriterXML.cxx | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/simgear/scene/model/SGReaderWriterXML.cxx b/simgear/scene/model/SGReaderWriterXML.cxx index 6dbb42fc..17f23bc7 100644 --- a/simgear/scene/model/SGReaderWriterXML.cxx +++ b/simgear/scene/model/SGReaderWriterXML.cxx @@ -215,11 +215,8 @@ sgLoad3DModel_internal(const SGPath& path, SGPath texturepath(path); SGPath modelDir(modelpath.dir()); - SGSharedPtr prop_root; - if (options->getPropertyNode().valid() && - options->getPropertyNode()->getRootNode()) - prop_root = options->getPropertyNode()->getRootNode(); - else + SGSharedPtr prop_root = options->getPropertyNode(); + if (!prop_root.valid()) prop_root = new SGPropertyNode; osg::ref_ptr data = options->getModelData(); -- 2.39.5