1
0
Fork 0

- don't store link to a disconnected *copy* of a subtree, but a link to

that subtree in the property tree itself
- remove a binding from the property tree
This commit is contained in:
mfranz 2005-06-20 18:52:45 +00:00
parent 8027023862
commit 1bcaf4bfdd
2 changed files with 7 additions and 3 deletions

View file

@ -93,6 +93,11 @@ FGBinding::FGBinding (const SGPropertyNode * node)
read(node);
}
FGBinding::~FGBinding ()
{
_arg->getParent()->removeChild(_arg->getName(), _arg->getIndex());
}
void
FGBinding::read (const SGPropertyNode * node)
{
@ -107,9 +112,8 @@ FGBinding::read (const SGPropertyNode * node)
return;
}
_arg = new SGPropertyNode;
_arg = (SGPropertyNode *)node;
_setting = 0;
copyProperties(node, _arg); // FIXME: don't use whole node!!!
}
void

View file

@ -95,7 +95,7 @@ public:
/**
* Destructor.
*/
virtual ~FGBinding () {}
virtual ~FGBinding ();
/**