Skip all empty bindings
This commit is contained in:
parent
a2a496a84b
commit
15c54b57f9
1 changed files with 5 additions and 3 deletions
|
@ -805,9 +805,11 @@ FGInput::_read_bindings (const SGPropertyNode * node,
|
||||||
SG_LOG(SG_INPUT, SG_DEBUG, "Reading all bindings");
|
SG_LOG(SG_INPUT, SG_DEBUG, "Reading all bindings");
|
||||||
vector<SGPropertyNode_ptr> bindings = node->getChildren("binding");
|
vector<SGPropertyNode_ptr> bindings = node->getChildren("binding");
|
||||||
for (unsigned int i = 0; i < bindings.size(); i++) {
|
for (unsigned int i = 0; i < bindings.size(); i++) {
|
||||||
SG_LOG(SG_INPUT, SG_DEBUG, "Reading binding "
|
if (bindings[i]->nChildren() > 0) {
|
||||||
<< bindings[i]->getStringValue("command"));
|
SG_LOG(SG_INPUT, SG_DEBUG, "Reading binding "
|
||||||
binding_list[modifiers].push_back(new FGBinding(bindings[i]));
|
<< bindings[i]->getStringValue("command"));
|
||||||
|
binding_list[modifiers].push_back(new FGBinding(bindings[i]));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Read nested bindings for modifiers
|
// Read nested bindings for modifiers
|
||||||
|
|
Loading…
Add table
Reference in a new issue