]> git.mxchange.org Git - flightgear.git/commitdiff
... but then again: it's only a rumor that listeners on tied properties
authormfranz <mfranz>
Sun, 16 Jul 2006 11:48:22 +0000 (11:48 +0000)
committermfranz <mfranz>
Sun, 16 Jul 2006 11:48:22 +0000 (11:48 +0000)
don't work. And like most rumors, it's untrue. So just output a debug
message.

src/Scripting/NasalSys.cxx

index d37857cecee13562d4d95147e3a7ff7c75f7108c..1f9ac8879ecbd3086a221e42e7d1e57bf2d2b080 100644 (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)))