mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-10-01 20:49:44 +00:00
Only show predefined type and user defined type if it is a valid input
This commit is contained in:
@@ -356,10 +356,12 @@ class BIM_PT_bim(Panel):
|
|||||||
row.prop(bim_properties, "ifc_product")
|
row.prop(bim_properties, "ifc_product")
|
||||||
row = layout.row()
|
row = layout.row()
|
||||||
row.prop(bim_properties, "ifc_class")
|
row.prop(bim_properties, "ifc_class")
|
||||||
row = layout.row()
|
if bim_properties.ifc_predefined_type:
|
||||||
row.prop(bim_properties, "ifc_predefined_type")
|
row = layout.row()
|
||||||
row = layout.row()
|
row.prop(bim_properties, "ifc_predefined_type")
|
||||||
row.prop(bim_properties, "ifc_userdefined_type")
|
if bim_properties.ifc_predefined_type == 'USERDEFINED':
|
||||||
|
row = layout.row()
|
||||||
|
row.prop(bim_properties, "ifc_userdefined_type")
|
||||||
row = layout.row()
|
row = layout.row()
|
||||||
row.operator("bim.assign_class")
|
row.operator("bim.assign_class")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user