Fix proposition to 3515 - extra empty lines removed from previous commit

This commit is contained in:
Benoit DAMAY
2024-03-03 19:29:02 +01:00
parent 36e779e32f
commit badee8fdc5
@@ -199,16 +199,11 @@ class BIM_PT_object_material(Panel):
row.operator("bim.enable_editing_assigned_material", icon="GREASEPENCIL", text="")
row.operator("bim.unassign_material", icon="X", text="")
if ObjectMaterialData.data["material_class"] == "IfcMaterial":
self.draw_single_ui()
else:
self.draw_set_ui()
def draw_single_ui(self):
if self.props.is_editing:
return self.draw_editable_single_ui()
@@ -231,7 +226,6 @@ class BIM_PT_object_material(Panel):
blenderbim.bim.helper.draw_attributes(self.props.material_set_attributes, self.layout)
blenderbim.bim.helper.draw_attributes(self.props.material_set_usage_attributes, self.layout)
if ObjectMaterialData.data["set_item_name"] == "profile" and not self.mprops.profiles:
row = self.layout.row(align=True)
row.label(text="No Profiles Available")