Skip to content

Commit

Permalink
removed _setDefaultCamera() and added back _computeCameraDefaultSetti…
Browse files Browse the repository at this point in the history
…ngs() due to a mixup and updated the aspectRatio
  • Loading branch information
RandomGamingDev committed Oct 25, 2023
1 parent 9858a68 commit 627836c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/webgl/p5.Camera.js
Original file line number Diff line number Diff line change
Expand Up @@ -1985,8 +1985,9 @@ p5.Camera = class Camera {
_resize() {
// If we're using the default camera, update the aspect ratio
if (this.cameraType === 'default') {
this._computeCameraDefaultSettings();
this.cameraFOV = this.defaultCameraFOV;
this._setDefaultCamera();
this.aspectRatio = this.defaultAspectRatio;
this.perspective();
}
}
Expand Down

0 comments on commit 627836c

Please sign in to comment.