diff --git a/src/webgl/p5.Camera.js b/src/webgl/p5.Camera.js index abdc4b4c2b..789bb2af12 100644 --- a/src/webgl/p5.Camera.js +++ b/src/webgl/p5.Camera.js @@ -708,15 +708,12 @@ p5.prototype.frustum = function (...args) { */ p5.prototype.createCamera = function () { this._assert3d('createCamera'); - const _cam = new p5.Camera(this._renderer); // compute default camera settings, then set a default camera + const _cam = new p5.Camera(this._renderer); _cam._computeCameraDefaultSettings(); _cam._setDefaultCamera(); - // set renderer current camera to the new camera - this._renderer._curCamera = _cam; - return _cam; };