From 8faf50ec0453fc4a27bfb8bc143ea15740a3bccf Mon Sep 17 00:00:00 2001 From: ageeye <5332429+ageeye@users.noreply.github.com> Date: Mon, 11 Jun 2018 20:30:01 +0200 Subject: [PATCH] PartDesign::Clone maintain the colors of the original --- src/Mod/PartDesign/Gui/Command.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Mod/PartDesign/Gui/Command.cpp b/src/Mod/PartDesign/Gui/Command.cpp index ad31967970..712beb50d1 100644 --- a/src/Mod/PartDesign/Gui/Command.cpp +++ b/src/Mod/PartDesign/Gui/Command.cpp @@ -331,8 +331,12 @@ void CmdPartDesignClone::activated(int iMsg) doCommand(Command::Doc,"App.ActiveDocument.ActiveObject.Placement = App.ActiveDocument.%s.Placement", objs.front()->getNameInDocument()); doCommand(Command::Doc,"App.ActiveDocument.ActiveObject.setEditorMode('Placement',0)"); - commitCommand(); updateActive(); + doCommand(Command::Doc,"App.ActiveDocument.ActiveObject.ViewObject.DiffuseColor = App.ActiveDocument.%s.ViewObject.DiffuseColor", + objs.front()->getNameInDocument()); + doCommand(Command::Doc,"App.ActiveDocument.ActiveObject.ViewObject.Transparency = App.ActiveDocument.%s.ViewObject.Transparency", + objs.front()->getNameInDocument()); + commitCommand(); } }