Skip to content

Commit

Permalink
Updated DynamicScene to use iter_entities (bevyengine#6227)
Browse files Browse the repository at this point in the history
  • Loading branch information
ramirezmike committed Oct 13, 2022
1 parent bc7b4fa commit 288629b
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions crates/bevy_scene/src/dynamic_scene.rs
Expand Up @@ -42,12 +42,7 @@ impl DynamicScene {
let mut builder =
DynamicSceneBuilder::from_world_with_type_registry(world, type_registry.clone());

builder.extract_entities(
world
.archetypes()
.iter()
.flat_map(|archetype| archetype.entities().iter().copied()),
);
builder.extract_entities(world.iter_entities());

builder.build()
}
Expand Down

0 comments on commit 288629b

Please sign in to comment.