Mesh: Make colors persistent if meshing option 'Apply face colors to mesh' is used

This commit is contained in:
wmayer
2024-05-09 17:42:31 +02:00
committed by wwmayer
parent 0095e52466
commit 7b3eef3dcf
4 changed files with 54 additions and 12 deletions

View File

@@ -511,6 +511,14 @@ void ViewProviderMesh::updateData(const App::Property* prop)
}
}
void ViewProviderMesh::finishRestoring()
{
if (Coloring.getValue()) {
Coloring.touch();
}
Gui::ViewProviderGeometryObject::finishRestoring();
}
QIcon ViewProviderMesh::getIcon() const
{
static QIcon icon = Gui::BitmapFactory().pixmap("Mesh_Tree");