From 7a92da8d8b15fefe622e3c3f20c3362488d061a5 Mon Sep 17 00:00:00 2001
From: Peter Kaiser <peter.kaiser@kit.edu>
Date: Sun, 7 Feb 2016 19:38:33 +0100
Subject: [PATCH] DebugDrawer: Properly clear line sets

---
 .../RobotAPI/components/DebugDrawer/DebugDrawerComponent.cpp | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/source/RobotAPI/components/DebugDrawer/DebugDrawerComponent.cpp b/source/RobotAPI/components/DebugDrawer/DebugDrawerComponent.cpp
index 099c5cf60..3e8f406fc 100644
--- a/source/RobotAPI/components/DebugDrawer/DebugDrawerComponent.cpp
+++ b/source/RobotAPI/components/DebugDrawer/DebugDrawerComponent.cpp
@@ -1813,6 +1813,11 @@ namespace armarx
             removeLineVisu(layerName, i.first);
         }
 
+        for (const auto& i : layer.addedLineVisualizations)
+        {
+            removeLineSetVisu(layerName, i.first);
+        }
+
         for (const auto& i : layer.addedBoxVisualizations)
         {
             removeBoxVisu(layerName, i.first);
-- 
GitLab