mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-09 17:31:45 +00:00
Minor fix - remove redundant code
style assignment was already done by `bim.add_style`
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user