-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
many_foxes and other animation examples have stopped working #20383
Copy link
Copy link
Labels
A-ScenesComposing and serializing ECS objectsComposing and serializing ECS objectsC-BugAn unexpected or incorrect behaviorAn unexpected or incorrect behaviorP-RegressionFunctionality that used to work but no longer does. Add a test for this!Functionality that used to work but no longer does. Add a test for this!S-Needs-DesignThis issue requires design work to think about how it would best be accomplishedThis issue requires design work to think about how it would best be accomplished
Milestone
Description
Bevy version
Relevant system information
SystemInfo { os: "Windows 10 Pro", kernel: "19045", cpu: "AMD Ryzen 9 7900 12-Core Processor", core_count: "12", memory: "63.2 GiB" }
AdapterInfo { name: "NVIDIA GeForce RTX 4060", vendor: 4318, device: 10370, device_type: DiscreteGpu, driver: "NVIDIA", driver_info: "572.83", backend: Vulkan }
What you did
cargo run --example many_foxes
cargo run --example morph_targets
What went wrong
The meshes do not animate.
Additional information
I think the problem is due to the mesh scenes getting respawned after the example's scene setup has run. I tagged a few functions and got this log:
[crates\bevy_scene\src\scene_spawner.rs:324:9] "spawn_sync_internal"
[crates\bevy_scene\src\scene_spawner.rs:324:9] "spawn_sync_internal"
[crates\bevy_scene\src\scene_spawner.rs:324:9] "spawn_sync_internal"
[examples\stress_tests\many_foxes.rs:240:9] "setup_scene_once_loaded"
[crates\bevy_scene\src\scene_spawner.rs:324:9] "spawn_sync_internal"
[crates\bevy_scene\src\scene_spawner.rs:324:9] "spawn_sync_internal"
[crates\bevy_scene\src\scene_spawner.rs:324:9] "spawn_sync_internal"
Before the change, there are no calls to spawn_sync_internal after the setup_scene_one_loaded.
Other examples that rely on scene spawning observers or Added<AnimationPlayer> are not affected. If I hack the broken examples to use Added<AnimationPlayer> then they start working.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
A-ScenesComposing and serializing ECS objectsComposing and serializing ECS objectsC-BugAn unexpected or incorrect behaviorAn unexpected or incorrect behaviorP-RegressionFunctionality that used to work but no longer does. Add a test for this!Functionality that used to work but no longer does. Add a test for this!S-Needs-DesignThis issue requires design work to think about how it would best be accomplishedThis issue requires design work to think about how it would best be accomplished