diff --git a/src/rendering/MarkerManager.cc b/src/rendering/MarkerManager.cc index 87373a69fc0..be46f91f423 100644 --- a/src/rendering/MarkerManager.cc +++ b/src/rendering/MarkerManager.cc @@ -498,7 +498,10 @@ bool MarkerManagerPrivate::ProcessMarkerMsg(const ignition::msgs::Marker &_msg) visualPtr->AddGeometry(markerPtr); // Add visual to root visual - this->scene->RootVisual()->AddChild(visualPtr); + if (!visualPtr->HasParent()) + { + this->scene->RootVisual()->AddChild(visualPtr); + } // Store the visual this->visuals[ns][id] = visualPtr;