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:
parent
19b09cef28
commit
550352c0b6
2 changed files with 2 additions and 2 deletions
src
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue