Browse Source

added support for THREE.Camera (#9125)

Jerome Etienne 9 years ago
parent
commit
6b7ca21fb7
1 changed files with 1 additions and 1 deletions
  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 );
 	THREE.LineSegments.call( this, geometry, material );
 
 
 	this.camera = camera;
 	this.camera = camera;
-	this.camera.updateProjectionMatrix();
+	if( this.camera.updateProjectionMatrix ) this.camera.updateProjectionMatrix();
 
 
 	this.matrix = camera.matrixWorld;
 	this.matrix = camera.matrixWorld;
 	this.matrixAutoUpdate = false;
 	this.matrixAutoUpdate = false;