diff --git a/src/Mod/PartDesign/Gui/Command.cpp b/src/Mod/PartDesign/Gui/Command.cpp index 214857722..3efd8fb1d 100644 --- a/src/Mod/PartDesign/Gui/Command.cpp +++ b/src/Mod/PartDesign/Gui/Command.cpp @@ -423,7 +423,8 @@ void CmdPartDesignNewSketch::activated(int iMsg) if(PlaneFilter.match()) supportString = std::string("(App.activeDocument().") + copy->getNameInDocument() + ", '')"; else - supportString = std::string("(App.activeDocument().") + copy->getNameInDocument() + ", '" + sub +"')"; + //it is ensured that only a single face is selected, hence it must always be Face1 of the shapebinder + supportString = std::string("(App.activeDocument().") + copy->getNameInDocument() + ", 'Face1')"; } } } diff --git a/src/Mod/PartDesign/Gui/TaskFeaturePick.cpp b/src/Mod/PartDesign/Gui/TaskFeaturePick.cpp index a3ac9298a..a0e4e8c94 100644 --- a/src/Mod/PartDesign/Gui/TaskFeaturePick.cpp +++ b/src/Mod/PartDesign/Gui/TaskFeaturePick.cpp @@ -320,7 +320,13 @@ App::DocumentObject* TaskFeaturePick::makeCopy(App::DocumentObject* obj, std::st } else { - auto name = std::string("Reference") + std::string(obj->getNameInDocument()); + std::string name; + if(!independent) + name = std::string("Reference"); + else + name = std::string("Copy"); + name += std::string(obj->getNameInDocument()); + std::string entity; if(!sub.empty()) entity = sub;