Fix missing check that scene is loaded in animated_fox example.

This commit is contained in:
Robin KAY 2023-03-17 01:00:38 +00:00
parent 79285311f2
commit fc74926073
1 changed files with 13 additions and 11 deletions

View File

@ -83,6 +83,7 @@ fn setup_scene_once_loaded(
if let (Ok(scene), Ok(mut player)) =
(scene_query.get_single(), player_query.get_single_mut())
{
if scene_manager.instance_is_ready(**scene) {
for entity in scene_manager.iter_instance_entities(**scene) {
commands.entity(entity).insert(OutlineBundle {
outline: OutlineVolume {
@ -97,4 +98,5 @@ fn setup_scene_once_loaded(
*done = true;
}
}
}
}