scenery: Use correct property root in xml loading.
Really query for the root node when loading xml files. This should fix http://code.google.com/p/flightgear-bugs/issues/detail?id=714
This commit is contained in:
parent
0b8bfd9ed8
commit
986d2cc42a
@ -215,8 +215,11 @@ sgLoad3DModel_internal(const SGPath& path,
|
||||
SGPath texturepath(path);
|
||||
SGPath modelDir(modelpath.dir());
|
||||
|
||||
SGSharedPtr<SGPropertyNode> prop_root = options->getPropertyNode();
|
||||
if (!prop_root.valid())
|
||||
SGSharedPtr<SGPropertyNode> prop_root;
|
||||
if (options->getPropertyNode().valid() &&
|
||||
options->getPropertyNode()->getRootNode())
|
||||
prop_root = options->getPropertyNode()->getRootNode();
|
||||
else
|
||||
prop_root = new SGPropertyNode;
|
||||
osg::ref_ptr<SGModelData> data = options->getModelData();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user