@@ -7,7 +7,9 @@ use crate::sbc::textures::model::texture_drawing::{
77use crate :: sbc:: textures:: model:: texture_model:: TextureModel ;
88
99use super :: options:: { PaintOptions , Region } ;
10- use super :: shared:: { blend_mode_expr, set_diffuse_uniforms, set_region_uniforms, SHADER_PATH_DIFFUSE } ;
10+ use super :: shared:: {
11+ blend_mode_expr, set_diffuse_uniforms, set_region_uniforms, SHADER_PATH_DIFFUSE ,
12+ } ;
1113
1214pub fn paint_diffuse (
1315 interface : & NativeInterfaceRef ,
@@ -22,7 +24,8 @@ pub fn paint_diffuse(
2224 return ;
2325 } ;
2426 let Some ( shader) =
25- tm. shaders . get_or_compile ( interface, SHADER_PATH_DIFFUSE , blend_mode_expr ( opts. mode ) )
27+ tm. shaders
28+ . get_or_compile ( interface, SHADER_PATH_DIFFUSE , blend_mode_expr ( opts. mode ) )
2629 else {
2730 return ;
2831 } ;
@@ -32,7 +35,13 @@ pub fn paint_diffuse(
3235 let size = region. size ;
3336 let t_coord = generate_texture_coords ( region. x , region. z , size, size, & opts. tex_coord_opts ( ) ) ;
3437
35- let tiles = tm. history . back_up_region ( & tm. tiles , region. x , region. z , region. end_x ( ) , region. end_z ( ) ) ;
38+ let tiles = tm. history . back_up_region (
39+ & tm. tiles ,
40+ region. x ,
41+ region. z ,
42+ region. end_x ( ) ,
43+ region. end_z ( ) ,
44+ ) ;
3645 let mut jobs = Vec :: new ( ) ;
3746 for tile in tiles {
3847 let ( m_coord, v_coord) = generate_map_coords ( tile. offset_x , tile. offset_z , size, size) ;
0 commit comments