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:
Stefan Tröger
2016-03-14 21:56:14 +01:00
parent 49489bfe62
commit 48b2bb86ab
4 changed files with 103 additions and 55 deletions

View File

@@ -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);
}
}