From 78285081790c22c3ed455f0fffed7a15a2a1f476 Mon Sep 17 00:00:00 2001 From: Andrej730 Date: Thu, 30 Nov 2023 10:41:32 +0500 Subject: [PATCH] Minor fix - remove redundant code style assignment was already done by `bim.add_style` --- src/blenderbim/blenderbim/bim/module/drawing/operator.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/blenderbim/blenderbim/bim/module/drawing/operator.py b/src/blenderbim/blenderbim/bim/module/drawing/operator.py index 5dc32d5bfe..83f7e1cfc4 100644 --- a/src/blenderbim/blenderbim/bim/module/drawing/operator.py +++ b/src/blenderbim/blenderbim/bim/module/drawing/operator.py @@ -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"