ViewProviderSketch: update geometry layer configuration on visual layer property change

This commit is contained in:
Abdullah Tahiri
2023-02-28 08:30:01 +01:00
committed by abdullahtahiriyo
parent 2f34f01c10
commit a8ebeaa27d

View File

@@ -2761,6 +2761,13 @@ void ViewProviderSketch::updateData(const App::Property *prop)
void ViewProviderSketch::onChanged(const App::Property *prop)
{
if (prop == &VisualLayerList) {
if(isInEditMode()) {
// Configure and rebuild Coin SceneGraph
editCoinManager->updateGeometryLayersConfiguration();
}
return;
}
// call father
ViewProviderPart::onChanged(prop);
}