@@ -420,7 +420,7 @@ pub fn extract_uinode_background_colors(
420420
421421 if !background_color. is_fully_transparent ( ) {
422422 extracted_uinodes. uinodes . push ( ExtractedUiNode {
423- render_entity : commands. spawn ( TemporaryRenderEntity ) . id ( ) ,
423+ render_entity : commands. spawn ( TemporaryRenderEntity :: default ( ) ) . id ( ) ,
424424 z_order : uinode. stack_index as f32 + stack_z_offsets:: BACKGROUND_COLOR ,
425425 clip : clip. map ( |clip| clip. clip ) ,
426426 image : AssetId :: default ( ) ,
@@ -447,7 +447,7 @@ pub fn extract_uinode_background_colors(
447447 && !outer_color. 0 . is_fully_transparent ( )
448448 {
449449 extracted_uinodes. uinodes . push ( ExtractedUiNode {
450- render_entity : commands. spawn ( TemporaryRenderEntity ) . id ( ) ,
450+ render_entity : commands. spawn ( TemporaryRenderEntity :: default ( ) ) . id ( ) ,
451451 z_order : uinode. stack_index as f32 + stack_z_offsets:: BACKGROUND_COLOR ,
452452 clip : clip. map ( |clip| clip. clip ) ,
453453 image : AssetId :: default ( ) ,
@@ -536,7 +536,7 @@ pub fn extract_uinode_images(
536536
537537 extracted_uinodes. uinodes . push ( ExtractedUiNode {
538538 z_order : uinode. stack_index as f32 + stack_z_offsets:: IMAGE ,
539- render_entity : commands. spawn ( TemporaryRenderEntity ) . id ( ) ,
539+ render_entity : commands. spawn ( TemporaryRenderEntity :: default ( ) ) . id ( ) ,
540540 clip : clip. map ( |clip| clip. clip ) ,
541541 image : image. image . id ( ) ,
542542 extracted_camera_entity,
@@ -653,7 +653,7 @@ pub fn extract_uinode_borders(
653653 node_type : NodeType :: Border ( border_flags) ,
654654 } ,
655655 main_entity : entity. into ( ) ,
656- render_entity : commands. spawn ( TemporaryRenderEntity ) . id ( ) ,
656+ render_entity : commands. spawn ( TemporaryRenderEntity :: default ( ) ) . id ( ) ,
657657 } ) ;
658658 }
659659 }
@@ -667,7 +667,7 @@ pub fn extract_uinode_borders(
667667 let outline_size = computed_node. outlined_node_size ( ) ;
668668 extracted_uinodes. uinodes . push ( ExtractedUiNode {
669669 z_order : computed_node. stack_index as f32 + stack_z_offsets:: BORDER ,
670- render_entity : commands. spawn ( TemporaryRenderEntity ) . id ( ) ,
670+ render_entity : commands. spawn ( TemporaryRenderEntity :: default ( ) ) . id ( ) ,
671671 image,
672672 clip : maybe_clip. map ( |clip| clip. clip ) ,
673673 extracted_camera_entity,
@@ -795,7 +795,7 @@ pub fn extract_ui_camera_view(
795795 } ,
796796 // Link to the main camera view.
797797 UiViewTarget ( render_entity) ,
798- TemporaryRenderEntity ,
798+ TemporaryRenderEntity :: default ( ) ,
799799 ) )
800800 . id ( ) ;
801801
@@ -859,7 +859,7 @@ pub fn extract_viewport_nodes(
859859
860860 extracted_uinodes. uinodes . push ( ExtractedUiNode {
861861 z_order : uinode. stack_index as f32 + stack_z_offsets:: IMAGE ,
862- render_entity : commands. spawn ( TemporaryRenderEntity ) . id ( ) ,
862+ render_entity : commands. spawn ( TemporaryRenderEntity :: default ( ) ) . id ( ) ,
863863 clip : clip. map ( |clip| clip. clip ) ,
864864 image : image. id ( ) ,
865865 extracted_camera_entity,
@@ -966,7 +966,7 @@ pub fn extract_text_sections(
966966 {
967967 extracted_uinodes. uinodes . push ( ExtractedUiNode {
968968 z_order : uinode. stack_index as f32 + stack_z_offsets:: TEXT ,
969- render_entity : commands. spawn ( TemporaryRenderEntity ) . id ( ) ,
969+ render_entity : commands. spawn ( TemporaryRenderEntity :: default ( ) ) . id ( ) ,
970970 image : atlas_info. texture ,
971971 clip : clip. map ( |clip| clip. clip ) ,
972972 extracted_camera_entity,
@@ -1053,7 +1053,7 @@ pub fn extract_text_shadows(
10531053 extracted_uinodes. uinodes . push ( ExtractedUiNode {
10541054 transform : node_transform,
10551055 z_order : uinode. stack_index as f32 + stack_z_offsets:: TEXT ,
1056- render_entity : commands. spawn ( TemporaryRenderEntity ) . id ( ) ,
1056+ render_entity : commands. spawn ( TemporaryRenderEntity :: default ( ) ) . id ( ) ,
10571057 image : atlas_info. texture ,
10581058 clip : clip. map ( |clip| clip. clip ) ,
10591059 extracted_camera_entity,
@@ -1076,7 +1076,7 @@ pub fn extract_text_shadows(
10761076 if has_strikethrough {
10771077 extracted_uinodes. uinodes . push ( ExtractedUiNode {
10781078 z_order : uinode. stack_index as f32 + stack_z_offsets:: TEXT ,
1079- render_entity : commands. spawn ( TemporaryRenderEntity ) . id ( ) ,
1079+ render_entity : commands. spawn ( TemporaryRenderEntity :: default ( ) ) . id ( ) ,
10801080 clip : clip. map ( |clip| clip. clip ) ,
10811081 image : AssetId :: default ( ) ,
10821082 extracted_camera_entity,
@@ -1102,7 +1102,7 @@ pub fn extract_text_shadows(
11021102 if has_underline {
11031103 extracted_uinodes. uinodes . push ( ExtractedUiNode {
11041104 z_order : uinode. stack_index as f32 + stack_z_offsets:: TEXT ,
1105- render_entity : commands. spawn ( TemporaryRenderEntity ) . id ( ) ,
1105+ render_entity : commands. spawn ( TemporaryRenderEntity :: default ( ) ) . id ( ) ,
11061106 clip : clip. map ( |clip| clip. clip ) ,
11071107 image : AssetId :: default ( ) ,
11081108 extracted_camera_entity,
@@ -1191,7 +1191,7 @@ pub fn extract_text_decorations(
11911191 if let Some ( text_background_color) = text_background_color {
11921192 extracted_uinodes. uinodes . push ( ExtractedUiNode {
11931193 z_order : uinode. stack_index as f32 + stack_z_offsets:: TEXT ,
1194- render_entity : commands. spawn ( TemporaryRenderEntity ) . id ( ) ,
1194+ render_entity : commands. spawn ( TemporaryRenderEntity :: default ( ) ) . id ( ) ,
11951195 clip : clip. map ( |clip| clip. clip ) ,
11961196 image : AssetId :: default ( ) ,
11971197 extracted_camera_entity,
@@ -1221,7 +1221,7 @@ pub fn extract_text_decorations(
12211221
12221222 extracted_uinodes. uinodes . push ( ExtractedUiNode {
12231223 z_order : uinode. stack_index as f32 + stack_z_offsets:: TEXT_STRIKETHROUGH ,
1224- render_entity : commands. spawn ( TemporaryRenderEntity ) . id ( ) ,
1224+ render_entity : commands. spawn ( TemporaryRenderEntity :: default ( ) ) . id ( ) ,
12251225 clip : clip. map ( |clip| clip. clip ) ,
12261226 image : AssetId :: default ( ) ,
12271227 extracted_camera_entity,
@@ -1251,7 +1251,7 @@ pub fn extract_text_decorations(
12511251
12521252 extracted_uinodes. uinodes . push ( ExtractedUiNode {
12531253 z_order : uinode. stack_index as f32 + stack_z_offsets:: TEXT_STRIKETHROUGH ,
1254- render_entity : commands. spawn ( TemporaryRenderEntity ) . id ( ) ,
1254+ render_entity : commands. spawn ( TemporaryRenderEntity :: default ( ) ) . id ( ) ,
12551255 clip : clip. map ( |clip| clip. clip ) ,
12561256 image : AssetId :: default ( ) ,
12571257 extracted_camera_entity,
0 commit comments