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 986d2cc42a
.
This commit is contained in:
parent
ac29faf3bb
commit
df2e5bf39f
@ -215,11 +215,8 @@ sgLoad3DModel_internal(const SGPath& path,
|
||||
SGPath texturepath(path);
|
||||
SGPath modelDir(modelpath.dir());
|
||||
|
||||
SGSharedPtr<SGPropertyNode> prop_root;
|
||||
if (options->getPropertyNode().valid() &&
|
||||
options->getPropertyNode()->getRootNode())
|
||||
prop_root = options->getPropertyNode()->getRootNode();
|
||||
else
|
||||
SGSharedPtr<SGPropertyNode> prop_root = options->getPropertyNode();
|
||||
if (!prop_root.valid())
|
||||
prop_root = new SGPropertyNode;
|
||||
osg::ref_ptr<SGModelData> data = options->getModelData();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user