Fixed so that 2D panel bindings work again.
This commit is contained in:
parent
63672604bf
commit
f85b9589da
2 changed files with 9 additions and 3 deletions
|
@ -89,13 +89,16 @@ FGBinding::FGBinding ()
|
||||||
}
|
}
|
||||||
|
|
||||||
FGBinding::FGBinding (const SGPropertyNode * node)
|
FGBinding::FGBinding (const SGPropertyNode * node)
|
||||||
|
: _command(0),
|
||||||
|
_arg(0),
|
||||||
|
_setting(0)
|
||||||
{
|
{
|
||||||
FGBinding();
|
|
||||||
read(node);
|
read(node);
|
||||||
}
|
}
|
||||||
|
|
||||||
FGBinding::~FGBinding ()
|
FGBinding::~FGBinding ()
|
||||||
{
|
{
|
||||||
|
delete _arg; // Delete the saved arguments
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
@ -119,7 +122,10 @@ FGBinding::read (const SGPropertyNode * node)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
_arg = (SGPropertyNode *)node;
|
delete _arg;
|
||||||
|
_arg = new SGPropertyNode;
|
||||||
|
_setting = 0;
|
||||||
|
copyProperties(node, _arg); // FIXME: don't use whole node!!!
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
|
@ -145,7 +145,7 @@ private:
|
||||||
|
|
||||||
string _command_name;
|
string _command_name;
|
||||||
SGCommandMgr::command_t _command;
|
SGCommandMgr::command_t _command;
|
||||||
mutable SGPropertyNode_ptr _arg;
|
mutable SGPropertyNode * _arg;
|
||||||
mutable SGPropertyNode_ptr _setting;
|
mutable SGPropertyNode_ptr _setting;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue