From: mfranz Date: Sun, 16 Jul 2006 11:48:22 +0000 (+0000) Subject: ... but then again: it's only a rumor that listeners on tied properties X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=4914844c313bb43f9cd28e6ebe8b5b946e59e97b;p=flightgear.git ... 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. --- diff --git a/src/Scripting/NasalSys.cxx b/src/Scripting/NasalSys.cxx index d37857cec..1f9ac8879 100644 --- a/src/Scripting/NasalSys.cxx +++ b/src/Scripting/NasalSys.cxx @@ -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)))