From abe309ba683e236824b24f59b2332acffe50b784 Mon Sep 17 00:00:00 2001 From: Peter Kaiser <peter.kaiser@kit.edu> Date: Sun, 10 Jul 2016 15:50:32 +0200 Subject: [PATCH] DebugDrawer: Disable callbacks when clearing selections --- .../components/DebugDrawer/DebugDrawerComponent.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/source/RobotAPI/components/DebugDrawer/DebugDrawerComponent.cpp b/source/RobotAPI/components/DebugDrawer/DebugDrawerComponent.cpp index cdc6c7222..9690608e4 100644 --- a/source/RobotAPI/components/DebugDrawer/DebugDrawerComponent.cpp +++ b/source/RobotAPI/components/DebugDrawer/DebugDrawerComponent.cpp @@ -142,6 +142,8 @@ namespace armarx ScopedRecursiveLockPtr l = getScopedVisuLock(); ScopedRecursiveLockPtr l2(new ScopedRecursiveLock(selectionMutex)); + removeSelectionCallbacks(); + if (layerName == "") { selectionNode->deselectAll(); @@ -157,10 +159,8 @@ namespace armarx } } } - else - { - ARMARX_WARNING << "Could not find layer '" << layerName << "' to clear"; - } + + installSelectionCallbacks(); } void DebugDrawerComponent::select(const std::string& layerName, const std::string& elementName, const Ice::Current&) -- GitLab