We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 74cfa67 commit 59bd51aCopy full SHA for 59bd51a
1 file changed
node-graph/nodes/vector/src/generator_nodes.rs
@@ -401,12 +401,14 @@ fn aperiodic_tiling(
401
#[hard_min(1.)]
402
#[hard_max(6.)]
403
levels: u32,
404
- #[expose] culling_footprint: Option<Footprint>,
+ #[expose] culling_footprint: Footprint,
405
) -> 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
- });
+ let bounds = culling_footprint.viewport_bounds_in_local_space();
+ let culling_bounds = if bounds.start.is_finite() && bounds.end.is_finite() {
+ Some([bounds.start, bounds.end])
+ } else {
410
+ None
411
+ };
412
let vector = crate::aperiodic_tiling::generate_hat_tiling(levels, scale, culling_bounds);
413
Table::new_from_element(vector)
414
}
0 commit comments