Only show predefined type and user defined type if it is a valid input

This commit is contained in:
Dion Moult
2020-01-13 17:42:59 +11:00
parent c4af52e8ee
commit 8ae8042d65
+6 -4
View File
@@ -356,10 +356,12 @@ class BIM_PT_bim(Panel):
row.prop(bim_properties, "ifc_product")
row = layout.row()
row.prop(bim_properties, "ifc_class")
row = layout.row()
row.prop(bim_properties, "ifc_predefined_type")
row = layout.row()
row.prop(bim_properties, "ifc_userdefined_type")
if bim_properties.ifc_predefined_type:
row = layout.row()
row.prop(bim_properties, "ifc_predefined_type")
if bim_properties.ifc_predefined_type == 'USERDEFINED':
row = layout.row()
row.prop(bim_properties, "ifc_userdefined_type")
row = layout.row()
row.operator("bim.assign_class")