mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-20 15:08:51 +00:00
small fix to f4cbd13748
This commit is contained in:
@@ -154,7 +154,7 @@ class AddProfileDef(bpy.types.Operator, tool.Ifc.Operator):
|
|||||||
obj_points = []
|
obj_points = []
|
||||||
obj = context.scene.BIMProfileProperties.object_to_profile
|
obj = context.scene.BIMProfileProperties.object_to_profile
|
||||||
if obj:
|
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.")
|
self.report({"WARNING"}, "This mesh is invalid to create a profile. Select a flat mesh with no more then one face.")
|
||||||
return
|
return
|
||||||
for v in obj.data.polygons[0].vertices:
|
for v in obj.data.polygons[0].vertices:
|
||||||
|
|||||||
Reference in New Issue
Block a user