Skip to content

Commit

Permalink
Minor fix - remove redundant code
Browse files Browse the repository at this point in the history
style assignment was already done by `bim.add_style`
  • Loading branch information
Andrej730 committed Nov 30, 2023
1 parent 7aa6be8 commit 7828508
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/blenderbim/blenderbim/bim/module/drawing/operator.py
Original file line number Diff line number Diff line change
Expand Up @@ -2624,10 +2624,6 @@ def _execute(self, context):
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"
Expand Down

0 comments on commit 7828508

Please sign in to comment.