Skip to content

Commit

Permalink
formatting fix
Browse files Browse the repository at this point in the history
  • Loading branch information
guccialex committed Sep 17, 2022
1 parent c87f848 commit 5f662d6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/scene/scene_node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ impl SceneNodeData {
// XXX: this exists because of a similar bug as `set_parent`.
fn remove_from_parent(&mut self, to_remove: &SceneNode) {
let _ = self.parent.as_ref().map(|p| {
if let Some(bp) = p.upgrade(){
if let Some(bp) = p.upgrade() {
bp.borrow_mut().remove(to_remove);
}
});
Expand Down Expand Up @@ -565,15 +565,15 @@ impl SceneNodeData {
match self.parent {
//unsafe
Some(ref mut p) => {
if let Some(mut dp) = p.upgrade(){
if let Some(dp) = p.upgrade() {
let mut dp = dp.borrow_mut();
dp.update();
self.world_transform = self.local_transform * dp.world_transform;
self.world_scale = self.local_scale.component_mul(&dp.local_scale);
self.up_to_date = true;
return;
}
},
}
None => {}
}

Expand Down

0 comments on commit 5f662d6

Please sign in to comment.