diff --git a/src/bonsai/bonsai/bim/module/geometry/operator.py b/src/bonsai/bonsai/bim/module/geometry/operator.py index e231f878dc..f592c0f98d 100644 --- a/src/bonsai/bonsai/bim/module/geometry/operator.py +++ b/src/bonsai/bonsai/bim/module/geometry/operator.py @@ -113,7 +113,7 @@ class OverrideMeshSeparate(bpy.types.Operator, tool.Ifc.Operator): representation_type = representation.RepresentationType if representation_type in ("Brep", "AdvancedBrep"): item = builder.faceted_brep(verts, faces) - elif representation_type in ("Tessellation"): + elif representation_type == "Tessellation": item = builder.mesh(verts, faces) else: assert False, f"Unexpected representation type: '{representation_type}'." diff --git a/src/bonsai/bonsai/tool/blender.py b/src/bonsai/bonsai/tool/blender.py index f7e997158a..5a73420e25 100644 --- a/src/bonsai/bonsai/tool/blender.py +++ b/src/bonsai/bonsai/tool/blender.py @@ -1150,6 +1150,7 @@ class Blender(bonsai.core.tool.Blender): # It's faster to get them as f and then convert to d # with .astype("d"), if precision is needed. coords = np.empty(len(verts) * 3, dtype="f") + verts.foreach_get("co", coords) coords = coords.reshape(-1, 3) return coords diff --git a/src/bonsai/bonsai/tool/model.py b/src/bonsai/bonsai/tool/model.py index 317e04ee1f..2eb32b68f0 100644 --- a/src/bonsai/bonsai/tool/model.py +++ b/src/bonsai/bonsai/tool/model.py @@ -1750,7 +1750,7 @@ class Model(bonsai.core.tool.Model): else: profile_defs.append(tmp.createIfcArbitraryClosedProfileDef("AREA", None, curve)) - if total_profile_defs := len(profile_defs) == 0: + if (total_profile_defs := len(profile_defs)) == 0: return elif total_profile_defs == 1: profile_def = profile_defs[0]