Skip to content

Commit f35f76e

Browse files
authored
fix(OrbitControls): update lookAt when matrixAutoUpdate false (#319)
1 parent d5df2b3 commit f35f76e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/controls/OrbitControls.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -289,6 +289,7 @@ class OrbitControls extends EventDispatcher {
289289

290290
position.copy(scope.target).add(offset)
291291

292+
if (!scope.object.matrixAutoUpdate) scope.object.updateMatrix()
292293
scope.object.lookAt(scope.target)
293294

294295
if (scope.enableDamping === true) {

0 commit comments

Comments
 (0)