Skip to content

Commit

Permalink
show base feature's placement on load if not part of a body
Browse files Browse the repository at this point in the history
  • Loading branch information
wwmayer committed Dec 20, 2017
1 parent 394ae19 commit 8e3b2d7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
8 changes: 7 additions & 1 deletion src/Mod/PartDesign/App/FeatureBase.cpp
Expand Up @@ -91,7 +91,13 @@ void FeatureBase::onChanged(const App::Property* prop) {
Part::Feature::onChanged(prop);
}


void FeatureBase::onDocumentRestored()
{
// if the base is not part of a body then show its placement property again
auto body = getFeatureBody();
if (!body)
Placement.setStatus(App::Property::Hidden, false);
}

}//namespace PartDesign

3 changes: 2 additions & 1 deletion src/Mod/PartDesign/App/FeatureBase.h
Expand Up @@ -48,7 +48,8 @@ class PartDesignExport FeatureBase : public PartDesign::Feature
}

virtual void onChanged(const App::Property* prop);
virtual App::DocumentObjectExecReturn* execute(void);
virtual App::DocumentObjectExecReturn* execute(void);
virtual void onDocumentRestored();
};

} //namespace PartDesign
Expand Down

0 comments on commit 8e3b2d7

Please sign in to comment.