File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
crates/bevy_ui/src/render Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -37,8 +37,8 @@ use bevy_sprite::TextureAtlas;
37
37
#[ cfg( feature = "bevy_text" ) ]
38
38
use bevy_text:: { PositionedGlyph , Text , TextLayoutInfo } ;
39
39
use bevy_transform:: components:: GlobalTransform ;
40
- use bevy_utils:: HashMap ;
41
40
use bevy_utils:: FloatOrd ;
41
+ use bevy_utils:: HashMap ;
42
42
use bytemuck:: { Pod , Zeroable } ;
43
43
use std:: mem:: replace;
44
44
use std:: ops:: Range ;
@@ -778,7 +778,9 @@ pub fn prepare_uinodes(
778
778
layout : & ui_pipeline. image_layout ,
779
779
} )
780
780
} ) ;
781
- if replace ( & mut batch_image_handle, extracted_uinode. image . id ( ) ) == DEFAULT_IMAGE_HANDLE . id ( ) {
781
+ if replace ( & mut batch_image_handle, extracted_uinode. image . id ( ) )
782
+ == DEFAULT_IMAGE_HANDLE . id ( )
783
+ {
782
784
let existing_batch = batches. last_mut ( ) . unwrap ( ) ;
783
785
existing_batch. 1 . image_handle_id = extracted_uinode. image . id ( ) ;
784
786
Some ( existing_batch)
@@ -913,7 +915,7 @@ pub fn prepare_uinodes(
913
915
index += QUAD_INDICES . len ( ) as u32 ;
914
916
batches. last_mut ( ) . unwrap ( ) . 1 . range . end = index;
915
917
ui_phase. items [ batch_item_index] . batch_size += 1 ;
916
- }
918
+ }
917
919
}
918
920
}
919
921
ui_meta. vertices . write_buffer ( & render_device, & render_queue) ;
You can’t perform that action at this time.
0 commit comments