From 058211148f79fb30ba9cdcac4a63435ee9ba8714 Mon Sep 17 00:00:00 2001 From: wmayer Date: Tue, 16 Oct 2018 19:39:07 +0200 Subject: [PATCH] set the cloned shape the tip of the created body --- src/Mod/PartDesign/Gui/Command.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Mod/PartDesign/Gui/Command.cpp b/src/Mod/PartDesign/Gui/Command.cpp index 7ccc70c951..474b479637 100644 --- a/src/Mod/PartDesign/Gui/Command.cpp +++ b/src/Mod/PartDesign/Gui/Command.cpp @@ -340,6 +340,10 @@ void CmdPartDesignClone::activated(int iMsg) doCommand(Command::Doc,"App.ActiveDocument.ActiveObject.setEditorMode('Placement',0)"); doCommand(Command::Doc,"App.ActiveDocument.%s.Group = [App.ActiveDocument.%s]", BodyName.c_str(), FeatName.c_str()); + + // Set the tip of the body + doCommand(Command::Doc,"App.ActiveDocument.%s.Tip = App.ActiveDocument.%s", + BodyName.c_str(), FeatName.c_str()); updateActive(); doCommand(Command::Doc,"App.ActiveDocument.ActiveObject.ViewObject.DiffuseColor = App.ActiveDocument.%s.ViewObject.DiffuseColor", objs.front()->getNameInDocument());