Skip to content

Commit

Permalink
fixed a bug when node's global transform wasn't updated after linkage
Browse files Browse the repository at this point in the history
  • Loading branch information
mrDIMAS committed Nov 12, 2024
1 parent a06e324 commit 114d338
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions fyrox-impl/src/scene/graph/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1739,6 +1739,11 @@ impl BaseSceneGraph for Graph {
self.isolate_node(child);
self.pool[child].parent = parent;
self.pool[parent].children.push(child);

// Force update of global transform of the node being attached.
self.message_sender
.send(NodeMessage::new(child, NodeMessageKind::TransformChanged))
.unwrap();
}

#[inline]
Expand Down

0 comments on commit 114d338

Please sign in to comment.