Skip to content

Commit b1bef1c

Browse files
committed
Also fix an explosion in SnapEdges with empty manifolds
1 parent 30f1274 commit b1bef1c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/flitter/render/window/models.pyx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -683,7 +683,10 @@ cdef class SnapEdges(UnaryOperation):
683683
return trimesh_model
684684

685685
cpdef object build_manifold(self):
686-
return self.original.get_manifold().calculate_normals(0, 360*self.snap_angle)
686+
manifold = self.original.get_manifold()
687+
if manifold is not None:
688+
manifold = manifold.calculate_normals(0, 360*self.snap_angle)
689+
return manifold
687690

688691

689692
cdef class Transform(UnaryOperation):

0 commit comments

Comments
 (0)