Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions src/cameras/Camera.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,25 @@ class Camera extends Object3D {

}

/**
* Updates the local transformation matrix.
* Non-uniform scale is not supported on cameras. Only uniform scale is supported.
*/
updateMatrix() {

const sx = this.scale.x;

if ( this.scale.y !== sx || this.scale.z !== sx ) {

this.scale.setScalar( sx );

}

super.updateMatrix();

}


updateMatrixWorld( force ) {

super.updateMatrixWorld( force );
Expand Down
Loading