mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-11 02:02:22 +00:00
Use label instead of dummy dynamic enum
And fix error in last commit...
This commit is contained in:
@@ -107,5 +107,3 @@ class BIMTypeObjectProperties(PropertyGroup):
|
||||
is_editing_type: BoolProperty(name="Is Editing Type", update=updateTypeDropdowns)
|
||||
relating_type_class: EnumProperty(items=getApplicableTypes, name="Relating Type Class")
|
||||
relating_type: EnumProperty(items=getRelatingTypes, name="Relating Type")
|
||||
# This is purely a UX thing
|
||||
blank_relating_type: EnumProperty(items=[("None", "No Types Found", "")], name="Relating Type")
|
||||
|
||||
@@ -72,6 +72,7 @@ class BIM_PT_type(Panel):
|
||||
row.prop(props, "relating_type", text="")
|
||||
row.operator("bim.assign_type", icon="CHECKMARK", text="")
|
||||
else:
|
||||
row.label(text="No Types Found")
|
||||
row.operator("bim.disable_editing_type", icon="CANCEL", text="")
|
||||
else:
|
||||
row = self.layout.row(align=True)
|
||||
|
||||
Reference in New Issue
Block a user