fix reference selection of origin features

This commit is contained in:
Stefan Tröger 2016-01-02 12:25:25 +01:00
parent 4be81b01e4
commit c0b2568091

View File

@ -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) {