Skip to content

Commit

Permalink
fix(OrbitControls): update lookAt when matrixAutoUpdate false (#319)
Browse files Browse the repository at this point in the history
  • Loading branch information
krispya authored Nov 22, 2023
1 parent d5df2b3 commit f35f76e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/controls/OrbitControls.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit f35f76e

Please sign in to comment.