+ set shape color when reading STEP with colors

This commit is contained in:
wmayer
2015-04-12 12:43:21 +02:00
parent 708f6665e6
commit 52db9a6cff
2 changed files with 3 additions and 2 deletions

View File

@@ -96,6 +96,7 @@ private:
{
Gui::ViewProvider* vp = Gui::Application::Instance->getViewProvider(part);
if (vp && vp->isDerivedFrom(PartGui::ViewProviderPartExt::getClassTypeId())) {
static_cast<PartGui::ViewProviderPartExt*>(vp)->ShapeColor.setValue(colors.front());
static_cast<PartGui::ViewProviderPartExt*>(vp)->DiffuseColor.setValues(colors);
}
}