Fixed Text2d tests
This commit is contained in:
parent
b8767a4bc9
commit
989ecea04d
@ -393,7 +393,7 @@ mod tests {
|
||||
use bevy_asset::{load_internal_binary_asset, Handle};
|
||||
use bevy_ecs::schedule::IntoScheduleConfigs;
|
||||
|
||||
use crate::{detect_text_needs_rerender, TextIterScratch};
|
||||
use crate::{detect_text_root_needs_rerender, detect_text_span_needs_rerender, TextIterScratch};
|
||||
|
||||
use super::*;
|
||||
|
||||
@ -413,7 +413,8 @@ mod tests {
|
||||
.add_systems(
|
||||
Update,
|
||||
(
|
||||
detect_text_needs_rerender::<Text2d>,
|
||||
detect_text_root_needs_rerender::<Text2d>,
|
||||
detect_text_span_needs_rerender,
|
||||
update_text2d_layout,
|
||||
calculate_bounds_text2d,
|
||||
)
|
||||
|
||||
@ -111,7 +111,7 @@ fn main() {
|
||||
}
|
||||
|
||||
if args.recompute_text {
|
||||
app.add_systems(Update, |mut text_query: Query<&mut Text>| {
|
||||
app.add_systems(Update, |mut text_query: Query<&mut TextSpan>| {
|
||||
text_query
|
||||
.iter_mut()
|
||||
.for_each(|mut text| text.set_changed());
|
||||
|
||||
Loading…
Reference in New Issue
Block a user