diff --git a/VirtualRobot/Robot.cpp b/VirtualRobot/Robot.cpp index 02d65be27d844e36eb37c047dbfdd9eeb9a4edd3..5bb8bd1cb2d1c694d250cd7737a61e207a63d155 100644 --- a/VirtualRobot/Robot.cpp +++ b/VirtualRobot/Robot.cpp @@ -826,6 +826,8 @@ namespace VirtualRobot { VirtualRobot::RobotPtr result = extractSubPart(this->getRootNode(), this->getType(), name, true, true, collisionChecker, scaling); result->setGlobalPose(getGlobalPose()); + result->filename = filename; + result->type = type; return result; }