+ fixes #0001736: Parts with multiple colors are displayed in a single bad color after hiding

This commit is contained in:
wmayer 2014-12-04 14:36:43 +01:00
parent 0db3326e68
commit 6872b2c393

View File

@ -328,8 +328,11 @@ void ViewProviderPartExt::onChanged(const App::Property* prop)
}
else {
// if the object was invisible and has been changed, recreate the visual
if (prop == &Visibility && Visibility.getValue() && VisualTouched)
if (prop == &Visibility && Visibility.getValue() && VisualTouched) {
updateVisual(dynamic_cast<Part::Feature*>(pcObject)->Shape.getValue());
// The material has to be checked again (#0001736)
onChanged(&DiffuseColor);
}
ViewProviderGeometryObject::onChanged(prop);
}