diff --git a/source/RobotAPI/components/DebugDrawer/DebugDrawerComponent.cpp b/source/RobotAPI/components/DebugDrawer/DebugDrawerComponent.cpp index d3df4657dba7c1276ddde5da3e4fb2d93bb23005..599a5182e51e34346a68d4556b9092696de78a20 100644 --- a/source/RobotAPI/components/DebugDrawer/DebugDrawerComponent.cpp +++ b/source/RobotAPI/components/DebugDrawer/DebugDrawerComponent.cpp @@ -1680,7 +1680,7 @@ namespace armarx removeAccumulatedData(layerName); - auto& layer = layers.at(layerName); + Layer& layer = layers.at(layerName); for (const auto& i : layer.addedCoordVisualizations) { @@ -1722,6 +1722,11 @@ namespace armarx removePolygonVisu(layerName, i.first); } + for (const auto& i : layer.added24BitColoredPointCloudVisualizations) + { + remove24BitColoredPointCloudVisu(layerName, i.first); + } + for (const auto& i : layer.addedArrowVisualizations) { removeArrowVisu(layerName, i.first);