Skip to content

Commit

Permalink
fix: Added missing call to _camera.updateMatrixWorld() (#556)
Browse files Browse the repository at this point in the history
  • Loading branch information
HTR1997 authored Feb 12, 2025
1 parent 6b1a7db commit 75d368a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/CameraControls.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2745,7 +2745,6 @@ export class CameraControls extends EventDispatcher {
! approxZero( this._focalOffset.z );
if ( affectOffset ) {

this._camera.updateMatrixWorld();
_xColumn.setFromMatrixColumn( this._camera.matrix, 0 );
_yColumn.setFromMatrixColumn( this._camera.matrix, 1 );
_zColumn.setFromMatrixColumn( this._camera.matrix, 2 );
Expand All @@ -2756,6 +2755,7 @@ export class CameraControls extends EventDispatcher {
_v3A.copy( _xColumn ).add( _yColumn ).add( _zColumn );
this._camera.position.add( _v3A );

this._camera.updateMatrixWorld();
}

if ( this._boundaryEnclosesCamera ) {
Expand Down

0 comments on commit 75d368a

Please sign in to comment.