scenery: Allow switching off particle systems on scenery load.
This commit is contained in:
parent
ba21713329
commit
0a96f4e145
@ -402,6 +402,7 @@ sgLoad3DModel_internal(const SGPath& path,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (dbOptions->getPluginStringData("SimGear::PARTICLESYSTEM") != "OFF") {
|
||||||
std::vector<SGPropertyNode_ptr> particle_nodes;
|
std::vector<SGPropertyNode_ptr> particle_nodes;
|
||||||
particle_nodes = props->getChildren("particlesystem");
|
particle_nodes = props->getChildren("particlesystem");
|
||||||
for (unsigned i = 0; i < particle_nodes.size(); ++i) {
|
for (unsigned i = 0; i < particle_nodes.size(); ++i) {
|
||||||
@ -417,6 +418,7 @@ sgLoad3DModel_internal(const SGPath& path,
|
|||||||
prop_root,
|
prop_root,
|
||||||
options2.get()));
|
options2.get()));
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
std::vector<SGPropertyNode_ptr> text_nodes;
|
std::vector<SGPropertyNode_ptr> text_nodes;
|
||||||
text_nodes = props->getChildren("text");
|
text_nodes = props->getChildren("text");
|
||||||
|
Loading…
Reference in New Issue
Block a user