Fix missing check that scene is loaded in animated_fox example.
This commit is contained in:
parent
79285311f2
commit
fc74926073
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user