diff --git a/src/Mod/PartDesign/Gui/CommandBody.cpp b/src/Mod/PartDesign/Gui/CommandBody.cpp index 04faaf92a5..a99eb837fb 100644 --- a/src/Mod/PartDesign/Gui/CommandBody.cpp +++ b/src/Mod/PartDesign/Gui/CommandBody.cpp @@ -242,7 +242,7 @@ void CmdPartDesignBody::activated(int iMsg) } } - // for sketches open the feature dialog to rebase it to a new pane + // for sketches open the feature dialog to rebase it to a new plane // as requested in issue #0002862 if (addtogroup) { std::vector planes; diff --git a/src/Mod/PartDesign/Gui/ViewProviderBody.cpp b/src/Mod/PartDesign/Gui/ViewProviderBody.cpp index cd18a0639a..03a3db6acd 100644 --- a/src/Mod/PartDesign/Gui/ViewProviderBody.cpp +++ b/src/Mod/PartDesign/Gui/ViewProviderBody.cpp @@ -454,7 +454,13 @@ bool ViewProviderBody::canDropObject(App::DocumentObject* obj) const void ViewProviderBody::dropObject(App::DocumentObject* obj) { PartDesign::Body* body = static_cast(getObject()); - body->BaseFeature.setValue(obj); + if (obj->getTypeId().isDerivedFrom(Part::Part2DObject::getClassTypeId())) { + body->addObject(obj); + } + else { + body->BaseFeature.setValue(obj); + } + App::Document* doc = body->getDocument(); doc->recompute();