From e4f43be64f42633a6f943bfb4d172d37dad167e3 Mon Sep 17 00:00:00 2001 From: Tobias Gassmann Date: Thu, 18 Jan 2024 15:00:15 +0100 Subject: [PATCH] call updateMatrixWorld after performing setLatLonToYUp (#460) * 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 --- src/three/renderers/GoogleTilesRenderer.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/three/renderers/GoogleTilesRenderer.js b/src/three/renderers/GoogleTilesRenderer.js index 5f2d4edf5..66f0d8b80 100644 --- a/src/three/renderers/GoogleTilesRenderer.js +++ b/src/three/renderers/GoogleTilesRenderer.js @@ -108,6 +108,8 @@ const GoogleTilesRendererMixin = base => class extends base { group.scale, ); + group.updateMatrixWorld( true ); + } };