Skip to content

Commit

Permalink
call updateMatrixWorld after performing setLatLonToYUp (#460)
Browse files Browse the repository at this point in the history
* call updateMatrixWorld after performing setLatLonToYUp in GoogleTilesRenderer

In case other components rely on the matrixWorld of the group they might only get the correct value after the next rendered frame. This might cause short "blips" with one frame being out of place, offset by the distance between the previous and current (lat,lon).

* adjust to lint rules
  • Loading branch information
tobias74 authored Jan 18, 2024
1 parent 55cbe69 commit e4f43be
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/three/renderers/GoogleTilesRenderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,8 @@ const GoogleTilesRendererMixin = base => class extends base {
group.scale,
);

group.updateMatrixWorld( true );

}

};
Expand Down

0 comments on commit e4f43be

Please sign in to comment.