PartDesign: Prevent user to remove core properties

This commit is contained in:
Florian Foinant-Willig
2025-03-16 22:57:53 +01:00
committed by Kacper Donat
parent 1ae550f6f4
commit d6dd100266
7 changed files with 24 additions and 24 deletions

View File

@@ -86,7 +86,7 @@ class _InvoluteGear:
def _ensure_properties(self, obj, is_restore):
def ensure_property(type_, name, doc, default):
if not hasattr(obj, name):
obj.addProperty(type_, name, "Gear", doc)
obj.addProperty(type_, name, "Gear", doc, locked=True)
if callable(default):
setattr(obj, name, default())
else: