File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed
node-graph/nodes/vector/src Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments