create /sim/gui if it doesn't exist
This commit is contained in:
parent
0c92519754
commit
9604277484
1 changed files with 1 additions and 1 deletions
|
@ -306,7 +306,7 @@ NewGUI::setStyle (void)
|
||||||
//puSetDefaultStyle();
|
//puSetDefaultStyle();
|
||||||
|
|
||||||
int which = fgGetInt("/sim/gui/current-style", 0);
|
int which = fgGetInt("/sim/gui/current-style", 0);
|
||||||
SGPropertyNode *sim = globals->get_props()->getNode("sim/gui");
|
SGPropertyNode *sim = globals->get_props()->getNode("sim/gui", true);
|
||||||
SGPropertyNode *n = sim->getChild("style", which);
|
SGPropertyNode *n = sim->getChild("style", which);
|
||||||
if (!n)
|
if (!n)
|
||||||
n = sim->getChild("style", 0, true);
|
n = sim->getChild("style", 0, true);
|
||||||
|
|
Loading…
Add table
Reference in a new issue