From 341cdd4ef78de51a60d5c5d48dc5394be0909bc2 Mon Sep 17 00:00:00 2001 From: Andrej730 Date: Fri, 17 May 2024 17:40:13 +0500 Subject: [PATCH] fix error updating curve representations after 3fa573e #4685 #4682 --- .../ifcopenshell/api/geometry/add_representation.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/ifcopenshell-python/ifcopenshell/api/geometry/add_representation.py b/src/ifcopenshell-python/ifcopenshell/api/geometry/add_representation.py index 149c443881..6dd006f47e 100644 --- a/src/ifcopenshell-python/ifcopenshell/api/geometry/add_representation.py +++ b/src/ifcopenshell-python/ifcopenshell/api/geometry/add_representation.py @@ -504,11 +504,10 @@ class Usecase: geom_data = self.settings["geometry"] if isinstance(geom_data, bpy.types.Mesh): - if not self.is_mesh_curve_consecutive(geom_data): - return - if self.file.schema == "IFC2X3": - return self.create_curves_from_mesh_ifc2x3(should_exclude_faces=should_exclude_faces, is_2d=is_2d) - return self.create_curves_from_mesh(should_exclude_faces=should_exclude_faces, is_2d=is_2d) + if self.is_mesh_curve_consecutive(geom_data): + if self.file.schema == "IFC2X3": + return self.create_curves_from_mesh_ifc2x3(should_exclude_faces=should_exclude_faces, is_2d=is_2d) + return self.create_curves_from_mesh(should_exclude_faces=should_exclude_faces, is_2d=is_2d) import blenderbim.tool as tool