Просмотр исходного кода

added support for THREE.Camera (#9125)

Jerome Etienne 9 лет назад
Родитель
Сommit
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;