From 6872b2c393192a9cbd1615bdbe3cb3cab86b046c Mon Sep 17 00:00:00 2001 From: wmayer Date: Thu, 4 Dec 2014 14:36:43 +0100 Subject: [PATCH] + fixes #0001736: Parts with multiple colors are displayed in a single bad color after hiding --- src/Mod/Part/Gui/ViewProviderExt.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Mod/Part/Gui/ViewProviderExt.cpp b/src/Mod/Part/Gui/ViewProviderExt.cpp index 301c46681..ead6e02ca 100644 --- a/src/Mod/Part/Gui/ViewProviderExt.cpp +++ b/src/Mod/Part/Gui/ViewProviderExt.cpp @@ -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(pcObject)->Shape.getValue()); + // The material has to be checked again (#0001736) + onChanged(&DiffuseColor); + } ViewProviderGeometryObject::onChanged(prop); }