PartDesign: body is responsible for visuals
-Hide all visual properties of features when they are part of a body -Propagate all body visual changes to features -Separate display mode from body mode to enable setting display mode for both "tip" and "through" modes -Use default visuals for body shape and only make "through" a new display mask mode for the children
This commit is contained in:
@@ -222,3 +222,18 @@ bool ViewProvider::onDelete(const std::vector<std::string> &)
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
void ViewProvider::setBodyMode(bool bodymode) {
|
||||
|
||||
std::vector<App::Property*> props;
|
||||
getPropertyList(props);
|
||||
|
||||
for(App::Property* prop : props) {
|
||||
|
||||
if(prop == &Visibility ||
|
||||
prop == &Selectable)
|
||||
continue;
|
||||
|
||||
prop->setStatus(App::Property::Hidden, bodymode);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user