... but then again: it's only a rumor that listeners on tied properties
don't work. And like most rumors, it's untrue. So just output a debug message.
This commit is contained in:
parent
1841bd7343
commit
4914844c31
1 changed files with 2 additions and 4 deletions
|
@ -656,11 +656,9 @@ naRef FGNasalSys::setListener(int argc, naRef* args)
|
|||
else if(naIsGhost(prop)) node = *(SGPropertyNode_ptr*)naGhost_ptr(prop);
|
||||
else return naNil();
|
||||
|
||||
if (node->isTied()) {
|
||||
naRuntimeError(_context, "cannot attach listener to tied property %s",
|
||||
if (node->isTied())
|
||||
SG_LOG(SG_NASAL, SG_DEBUG, "Attaching listener to tied property " <<
|
||||
node->getPath());
|
||||
return naNil();
|
||||
}
|
||||
|
||||
naRef handler = argc > 1 ? args[1] : naNil();
|
||||
if(!(naIsCode(handler) || naIsCCode(handler) || naIsFunc(handler)))
|
||||
|
|
Loading…
Add table
Reference in a new issue