Skip to content

Commit

Permalink
Send SceneInstanceReady only once per scene
Browse files Browse the repository at this point in the history
  • Loading branch information
daxpedda committed Dec 16, 2023
1 parent 746361b commit 6387ea5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/bevy_scene/src/scene_spawner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -353,10 +353,10 @@ impl SceneSpawner {
child: entity,
}
.apply(world);

world.send_event(SceneInstanceReady { parent });
}
}

world.send_event(SceneInstanceReady { parent });
} else {
self.scenes_with_parent.push((instance_id, parent));
}
Expand Down

0 comments on commit 6387ea5

Please sign in to comment.