Skip to content

Commit 5e5d208

Browse files
committed
Simple boolean operations only adding a row if it is valid geometry
1 parent f75f425 commit 5e5d208

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

  • node-graph/nodes/path-bool/src

node-graph/nodes/path-bool/src/lib.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,8 +169,10 @@ fn boolean_operation_on_vector_table(vector: &Table<Vector>, boolean_operation:
169169

170170
let contours = top.contours(|winding| winding.is_inside(boolean_operation));
171171

172-
append_linesweeper_contours(row.element_mut(), &contours);
173-
table.push(row);
172+
if contours.contours().next().is_some() {
173+
append_linesweeper_contours(row.element_mut(), &contours);
174+
table.push(row);
175+
}
174176

175177
table
176178
}

0 commit comments

Comments
 (0)