cargo fmt
This commit is contained in:
parent
e4550aaab2
commit
fc5d8061d5
@ -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…
Reference in New Issue
Block a user