Skip to content

Commit 59bd51a

Browse files
committed
Bug Fix
1 parent 74cfa67 commit 59bd51a

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

node-graph/nodes/vector/src/generator_nodes.rs

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -401,12 +401,14 @@ fn aperiodic_tiling(
401401
#[hard_min(1.)]
402402
#[hard_max(6.)]
403403
levels: u32,
404-
#[expose] culling_footprint: Option<Footprint>,
404+
#[expose] culling_footprint: Footprint,
405405
) -> Table<Vector> {
406-
let culling_bounds = culling_footprint.map(|fp| {
407-
let bounds = fp.viewport_bounds_in_local_space();
408-
[bounds.start, bounds.end]
409-
});
406+
let bounds = culling_footprint.viewport_bounds_in_local_space();
407+
let culling_bounds = if bounds.start.is_finite() && bounds.end.is_finite() {
408+
Some([bounds.start, bounds.end])
409+
} else {
410+
None
411+
};
410412
let vector = crate::aperiodic_tiling::generate_hat_tiling(levels, scale, culling_bounds);
411413
Table::new_from_element(vector)
412414
}

0 commit comments

Comments
 (0)