Skip to content

Commit

Permalink
+ fixes #1736: Parts with multiple colors are displayed in a single b…
Browse files Browse the repository at this point in the history
…ad color after hiding
  • Loading branch information
wwmayer committed Dec 4, 2014
1 parent 0db3326 commit 6872b2c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Mod/Part/Gui/ViewProviderExt.cpp
Expand Up @@ -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);
}
Expand Down

0 comments on commit 6872b2c

Please sign in to comment.