Mesh: [skip ci] handle visbility changes of mesh defects view provider due to side-effects caused in implementation of base class
This commit is contained in:
@@ -90,6 +90,11 @@ void ViewProviderMeshDefects::onChanged(const App::Property* prop)
|
||||
if (prop == &LineWidth) {
|
||||
pcDrawStyle->lineWidth = LineWidth.getValue();
|
||||
}
|
||||
// Visibility changes must be handled here because in the base class it changes the attribute of the feature
|
||||
// and thus affects the visibility of the mesh view provider which is undesired behaviour
|
||||
else if (prop == &Visibility) {
|
||||
Visibility.getValue() ? show() : hide();
|
||||
}
|
||||
else {
|
||||
ViewProviderDocumentObject::onChanged(prop);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user