PartDesign: Prevent user to remove core properties
This commit is contained in:
committed by
Kacper Donat
parent
1ae550f6f4
commit
d6dd100266
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user