Explorar o código

added support for THREE.Camera (#9125)

Jerome Etienne %!s(int64=9) %!d(string=hai) anos
pai
achega
6b7ca21fb7
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/extras/helpers/CameraHelper.js

+ 1 - 1
src/extras/helpers/CameraHelper.js

@@ -94,7 +94,7 @@ THREE.CameraHelper = function ( camera ) {
 	THREE.LineSegments.call( this, geometry, material );
 
 	this.camera = camera;
-	this.camera.updateProjectionMatrix();
+	if( this.camera.updateProjectionMatrix ) this.camera.updateProjectionMatrix();
 
 	this.matrix = camera.matrixWorld;
 	this.matrixAutoUpdate = false;