mirror of
https://github.com/bevyengine/bevy
synced 2025-02-16 14:08:32 +00:00
cargo fmt
This commit is contained in:
parent
e4550aaab2
commit
fc5d8061d5
1 changed files with 3 additions and 4 deletions
|
@ -86,10 +86,9 @@ impl<'a> WorldBuilder<'a> {
|
|||
fn add_parent_to_current_entity(&mut self) {
|
||||
let current_entity = self.current_entity.unwrap();
|
||||
if let Some(parent_entity) = self.parent_entity {
|
||||
let _ = self.world.add_component(
|
||||
current_entity,
|
||||
Parent(parent_entity),
|
||||
);
|
||||
let _ = self
|
||||
.world
|
||||
.add_component(current_entity, Parent(parent_entity));
|
||||
let _ = self
|
||||
.world
|
||||
.add_component(current_entity, LocalToParent::identity());
|
||||
|
|
Loading…
Add table
Reference in a new issue