BIM: prevent user to remove core properties
This commit is contained in:
committed by
Kacper Donat
parent
d5e2fdf8fd
commit
8a4c61ec5a
@@ -282,7 +282,7 @@ class _Building(ArchFloor._Floor):
|
||||
|
||||
pl = obj.PropertiesList
|
||||
if not "BuildingType" in pl:
|
||||
obj.addProperty("App::PropertyEnumeration","BuildingType","Arch",QT_TRANSLATE_NOOP("App::Property","The type of this building"))
|
||||
obj.addProperty("App::PropertyEnumeration","BuildingType","Arch",QT_TRANSLATE_NOOP("App::Property","The type of this building"), locked=True)
|
||||
obj.BuildingType = BuildingTypes
|
||||
obj.setEditorMode('Height',2)
|
||||
self.Type = "Building"
|
||||
|
||||
Reference in New Issue
Block a user