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 ad467f7 commit 8ed36b7Copy full SHA for 8ed36b7
node-graph/nodes/vector/src/generator_nodes.rs
@@ -410,7 +410,13 @@ fn aperiodic_tiling(
410
#[default(100., 100.)]
411
culling_bound_max: DVec2,
412
) -> Table<Vector> {
413
- let culling_bounds = if cull_viewport { Some([culling_bound_min, culling_bound_max]) } else { None };
+ let culling_bounds = if cull_viewport {
414
+ let min = culling_bound_min.min(culling_bound_max);
415
+ let max = culling_bound_min.max(culling_bound_max);
416
+ Some([min, max])
417
+ } else {
418
+ None
419
+ };
420
let vector = crate::aperiodic_tiling::generate_hat_tiling(levels, scale, culling_bounds);
421
Table::new_from_element(vector)
422
}
0 commit comments