Skip to content

many_foxes and other animation examples have stopped working #20383

@greeble-dev

Description

@greeble-dev

Bevy version

50f0f4c

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

Bisected to 50f0f4c (#18358)

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-ScenesComposing and serializing ECS objectsC-BugAn unexpected or incorrect behaviorP-RegressionFunctionality 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 accomplished

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions