[Core] Fix for frozen status

A frozen object prevents the document to be saved
The frozen status propagates into object inheritance
A frozen sketch is no more editable
Transform and Placement can't be changed for a frozen object
The freeze icon is reduced
This commit is contained in:
Florian Foinant-Willig
2024-12-01 17:48:15 +01:00
committed by Chris Hennes
parent b6697c12eb
commit 1eb8496aae
4 changed files with 37 additions and 15 deletions

View File

@@ -2987,6 +2987,11 @@ bool ViewProviderSketch::setEdit(int ModNum)
}
Sketcher::SketchObject* sketch = getSketchObject();
if(sketch->isFreezed()) {
return false; // Disallow edit of a frozen sketch
}
if (!sketch->evaluateConstraints()) {
QMessageBox box(Gui::getMainWindow());
box.setIcon(QMessageBox::Critical);