From 4914844c313bb43f9cd28e6ebe8b5b946e59e97b Mon Sep 17 00:00:00 2001 From: mfranz Date: Sun, 16 Jul 2006 11:48:22 +0000 Subject: [PATCH] ... 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. --- src/Scripting/NasalSys.cxx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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))) -- 2.39.5