File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ pub struct Generator {
30
30
pub params : TerrainGeneratorParams ,
31
31
}
32
32
33
- #[ derive( Debug , Copy , Clone ) ]
33
+ #[ derive( Debug ) ]
34
34
pub struct NoiseFunctionParams {
35
35
pub octaves : i32 ,
36
36
pub height : f64 ,
Original file line number Diff line number Diff line change @@ -297,18 +297,18 @@ mod visualizer {
297
297
TextureType :: Density => "Density" ,
298
298
} ;
299
299
300
- let mut params = match texture_type {
301
- TextureType :: Height => generator. params . height_params ,
302
- TextureType :: HeightAdjust => generator. params . height_adjust_params ,
303
- TextureType :: Density => generator. params . density_params
300
+ let params : & mut NoiseFunctionParams = match texture_type {
301
+ TextureType :: Height => & mut generator. params . height_params ,
302
+ TextureType :: HeightAdjust => & mut generator. params . height_adjust_params ,
303
+ TextureType :: Density => & mut generator. params . density_params
304
304
} ;
305
305
306
306
egui:: Window :: new ( window_name) . show ( contexts. ctx_mut ( ) , |ui| {
307
307
ui. label ( window_name) ;
308
308
309
309
let mut changed = false ;
310
310
311
- add_sliders_for_noise_params ( ui, & mut changed, & mut params) ;
311
+ add_sliders_for_noise_params ( ui, & mut changed, params) ;
312
312
313
313
if changed {
314
314
event_writer. send ( terrain_events:: RegenerateHeightMapEvent ( texture_type. clone ( ) ) ) ;
You can’t perform that action at this time.
0 commit comments