1
0
Fork 0

keep panel and gui bindings nicely separated; useful for debugging,

especially now that the property path is shown in nasal error messages
This commit is contained in:
mfranz 2005-06-24 14:07:15 +00:00
parent 19b09cef28
commit 550352c0b6
2 changed files with 2 additions and 2 deletions

View file

@ -182,7 +182,7 @@ readAction (const SGPropertyNode * node, float w_scale, float h_scale)
FGPanelAction * action = new FGPanelAction(button, x, y, w, h, repeatable);
vector<SGPropertyNode_ptr>bindings = node->getChildren("binding");
SGPropertyNode * dest = fgGetNode("/sim/bindings", true);
SGPropertyNode * dest = fgGetNode("/sim/bindings/panel", true);
SGPropertyNode *binding;
unsigned int i, j;

View file

@ -610,7 +610,7 @@ FGDialog::setupObject (puObject * object, SGPropertyNode * props)
_liveObjects.push_back(po);
}
SGPropertyNode * dest = fgGetNode("/sim/bindings", true);
SGPropertyNode * dest = fgGetNode("/sim/bindings/gui", true);
vector<SGPropertyNode_ptr> bindings = props->getChildren("binding");
if (bindings.size() > 0) {
GUIInfo * info = new GUIInfo(this);