show base feature's placement on load if not part of a body
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -48,7 +48,8 @@ public:
|
||||
}
|
||||
|
||||
virtual void onChanged(const App::Property* prop);
|
||||
virtual App::DocumentObjectExecReturn* execute(void);
|
||||
virtual App::DocumentObjectExecReturn* execute(void);
|
||||
virtual void onDocumentRestored();
|
||||
};
|
||||
|
||||
} //namespace PartDesign
|
||||
|
||||
Reference in New Issue
Block a user