mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-20 06:58:56 +00:00
Fix proposition to 3515 - extra empty lines removed from previous commit
This commit is contained in:
@@ -199,16 +199,11 @@ class BIM_PT_object_material(Panel):
|
|||||||
row.operator("bim.enable_editing_assigned_material", icon="GREASEPENCIL", text="")
|
row.operator("bim.enable_editing_assigned_material", icon="GREASEPENCIL", text="")
|
||||||
row.operator("bim.unassign_material", icon="X", text="")
|
row.operator("bim.unassign_material", icon="X", text="")
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if ObjectMaterialData.data["material_class"] == "IfcMaterial":
|
if ObjectMaterialData.data["material_class"] == "IfcMaterial":
|
||||||
self.draw_single_ui()
|
self.draw_single_ui()
|
||||||
else:
|
else:
|
||||||
self.draw_set_ui()
|
self.draw_set_ui()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def draw_single_ui(self):
|
def draw_single_ui(self):
|
||||||
if self.props.is_editing:
|
if self.props.is_editing:
|
||||||
return self.draw_editable_single_ui()
|
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_attributes, self.layout)
|
||||||
blenderbim.bim.helper.draw_attributes(self.props.material_set_usage_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:
|
if ObjectMaterialData.data["set_item_name"] == "profile" and not self.mprops.profiles:
|
||||||
row = self.layout.row(align=True)
|
row = self.layout.row(align=True)
|
||||||
row.label(text="No Profiles Available")
|
row.label(text="No Profiles Available")
|
||||||
|
|||||||
Reference in New Issue
Block a user