Mesh: Make colors persistent if meshing option 'Apply face colors to mesh' is used
This commit is contained in:
@@ -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");
|
||||
|
||||
@@ -200,6 +200,11 @@ public:
|
||||
void highlightSegments(const std::vector<App::Color>&);
|
||||
//@}
|
||||
|
||||
/** @name Restoring view provider from document load */
|
||||
//@{
|
||||
void finishRestoring() override;
|
||||
//@}
|
||||
|
||||
protected:
|
||||
/// Sets the edit mode
|
||||
bool setEdit(int ModNum) override;
|
||||
|
||||
Reference in New Issue
Block a user