Skip to content

Commit

Permalink
Add some comments
Browse files Browse the repository at this point in the history
  • Loading branch information
aevyrie committed Aug 10, 2024
1 parent 008839c commit 7cb2bec
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/reference_frame/propagation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ impl<P: GridPrecision> ReferenceFrame<P> {
// Optimization: we don't need to recompute the transforms if the entity hasn't
// moved and the floating origin's local origin in that reference frame hasn't
// changed.
//
// This also ensures we don't trigger change detection on GlobalTransforms when
// they haven't changed.
if frame.local_floating_origin().is_local_origin_unchanged()
&& !transform.is_changed()
&& !grid.is_changed()
Expand Down

0 comments on commit 7cb2bec

Please sign in to comment.