Преглед изворни кода

added support for THREE.Camera (#9125)

Jerome Etienne пре 9 година
родитељ
комит
6b7ca21fb7
1 измењених фајлова са 1 додато и 1 уклоњено
  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;