mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-20 15:08:51 +00:00
See #1227. Minor fix.
This commit is contained in:
@@ -2069,6 +2069,9 @@ class CutDecorator:
|
|||||||
edges = []
|
edges = []
|
||||||
offset = 0
|
offset = 0
|
||||||
for segment in final_segments:
|
for segment in final_segments:
|
||||||
|
if not segment:
|
||||||
|
# Why does this occur?
|
||||||
|
continue
|
||||||
if isinstance(segment[0], tuple):
|
if isinstance(segment[0], tuple):
|
||||||
segment = [Vector(co) for co in segment]
|
segment = [Vector(co) for co in segment]
|
||||||
verts.extend([bm.verts.new(co.to_3d()) for co in segment])
|
verts.extend([bm.verts.new(co.to_3d()) for co in segment])
|
||||||
|
|||||||
Reference in New Issue
Block a user