1
0
Fork 0

... 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:
mfranz 2006-07-16 11:48:22 +00:00
parent 1841bd7343
commit 4914844c31

View file

@ -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)))