- 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:
parent
8027023862
commit
1bcaf4bfdd
2 changed files with 7 additions and 3 deletions
|
@ -93,6 +93,11 @@ FGBinding::FGBinding (const SGPropertyNode * node)
|
||||||
read(node);
|
read(node);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
FGBinding::~FGBinding ()
|
||||||
|
{
|
||||||
|
_arg->getParent()->removeChild(_arg->getName(), _arg->getIndex());
|
||||||
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
FGBinding::read (const SGPropertyNode * node)
|
FGBinding::read (const SGPropertyNode * node)
|
||||||
{
|
{
|
||||||
|
@ -107,9 +112,8 @@ FGBinding::read (const SGPropertyNode * node)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
_arg = new SGPropertyNode;
|
_arg = (SGPropertyNode *)node;
|
||||||
_setting = 0;
|
_setting = 0;
|
||||||
copyProperties(node, _arg); // FIXME: don't use whole node!!!
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
|
@ -95,7 +95,7 @@ public:
|
||||||
/**
|
/**
|
||||||
* Destructor.
|
* Destructor.
|
||||||
*/
|
*/
|
||||||
virtual ~FGBinding () {}
|
virtual ~FGBinding ();
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Reference in a new issue