Explorar o código

Removed updateProjectionMatrix() from camera .clone()
It shouldn't be needed as Camera .clone() is already copying .projectionMatrix.

Mr.doob %!s(int64=12) %!d(string=hai) anos
pai
achega
851412a908
Modificáronse 2 ficheiros con 0 adicións e 4 borrados
  1. 0 2
      src/cameras/OrthographicCamera.js
  2. 0 2
      src/cameras/PerspectiveCamera.js

+ 0 - 2
src/cameras/OrthographicCamera.js

@@ -39,8 +39,6 @@ THREE.OrthographicCamera.prototype.clone = function () {
 	
 	camera.near = this.near;
 	camera.far = this.far;
-	
-	camera.updateProjectionMatrix();
 
 	return camera;
 };

+ 0 - 2
src/cameras/PerspectiveCamera.js

@@ -125,8 +125,6 @@ THREE.PerspectiveCamera.prototype.clone = function () {
 	camera.aspect = this.aspect;
 	camera.near = this.near;
 	camera.far = this.far;
-	
-	camera.updateProjectionMatrix();
 
 	return camera;
 };

粤ICP备19079148号