From c0b2568091cbc92371456d8b65889afd95caa59d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20Tr=C3=B6ger?= Date: Sat, 2 Jan 2016 12:25:25 +0100 Subject: [PATCH] fix reference selection of origin features --- src/Mod/PartDesign/Gui/ReferenceSelection.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Mod/PartDesign/Gui/ReferenceSelection.cpp b/src/Mod/PartDesign/Gui/ReferenceSelection.cpp index 8c9f04121..a6025504d 100644 --- a/src/Mod/PartDesign/Gui/ReferenceSelection.cpp +++ b/src/Mod/PartDesign/Gui/ReferenceSelection.cpp @@ -188,7 +188,8 @@ void getReferencedSelection(const App::DocumentObject* thisObj, const Gui::Selec //of course only if thisObj is in a body, as otherwise the old workflow would not //be supportet PartDesign::Body* body = PartDesignGui::getBodyFor(thisObj, false); - if(body) { + bool originfeature = selObj->isDerivedFrom(App::OriginFeature::getClassTypeId()); + if(!originfeature && body) { PartDesign::Body* selBody = PartDesignGui::getBodyFor(selObj, false); if(!selBody || body != selBody) {