From a8efc5b1d99f317bc39da74ce69ee372c74d1d51 Mon Sep 17 00:00:00 2001 From: Ryan Schultz Date: Tue, 12 Nov 2024 15:05:28 -0600 Subject: [PATCH] small fix to f4cbd13748c2344137b5c0914bac6211cda40f11 --- src/bonsai/bonsai/bim/module/profile/operator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bonsai/bonsai/bim/module/profile/operator.py b/src/bonsai/bonsai/bim/module/profile/operator.py index 264779c8f0..20bf981e52 100644 --- a/src/bonsai/bonsai/bim/module/profile/operator.py +++ b/src/bonsai/bonsai/bim/module/profile/operator.py @@ -154,7 +154,7 @@ class AddProfileDef(bpy.types.Operator, tool.Ifc.Operator): obj_points = [] obj = context.scene.BIMProfileProperties.object_to_profile if obj: - if len(obj.data.polygongs > 1): + if len(obj.data.polygons) != 1: self.report({"WARNING"}, "This mesh is invalid to create a profile. Select a flat mesh with no more then one face.") return for v in obj.data.polygons[0].vertices: