Use label instead of dummy dynamic enum

And fix error in last commit...
This commit is contained in:
Gorgious
2021-08-20 10:16:58 +02:00
parent 447c07460a
commit 3b36029b1d
2 changed files with 1 additions and 2 deletions
@@ -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)