From f35f76e67f763903fa11f9d7a413587b6efe2d6b Mon Sep 17 00:00:00 2001 From: Kris Date: Tue, 21 Nov 2023 17:47:12 -0800 Subject: [PATCH] fix(OrbitControls): update lookAt when matrixAutoUpdate false (#319) --- src/controls/OrbitControls.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/controls/OrbitControls.ts b/src/controls/OrbitControls.ts index a4d73372..ca964f69 100644 --- a/src/controls/OrbitControls.ts +++ b/src/controls/OrbitControls.ts @@ -289,6 +289,7 @@ class OrbitControls extends EventDispatcher { position.copy(scope.target).add(offset) + if (!scope.object.matrixAutoUpdate) scope.object.updateMatrix() scope.object.lookAt(scope.target) if (scope.enableDamping === true) {