Minor fix - remove redundant code

style assignment was already done by `bim.add_style`
This commit is contained in:
Andrej730
2023-11-30 10:41:32 +05:00
parent 7aa6be8e8a
commit 7828508179
@@ -2624,10 +2624,6 @@ class AddReferenceImage(bpy.types.Operator, Operator):
obj.material_slots[0].material = material
bpy.ops.bim.add_style()
style = ifc_file.by_id(material.BIMMaterialProperties.ifc_style_id)
representation = tool.Geometry.get_active_representation(obj)
tool.Ifc.run("style.assign_representation_styles", shape_representation=representation, styles=[style])
material.diffuse_color = (0.031379, 0, 0.801157, 1)
material.BIMStyleProperties.diffuse_path = self.filepath
material.BIMStyleProperties.uv_mode = "Generated"