Skip to content

Commit 6b7ca21

Browse files
jeromeetiennemrdoob
authored andcommitted
added support for THREE.Camera (mrdoob#9125)
1 parent 8b7a1e1 commit 6b7ca21

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/extras/helpers/CameraHelper.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ THREE.CameraHelper = function ( camera ) {
9494
THREE.LineSegments.call( this, geometry, material );
9595

9696
this.camera = camera;
97-
this.camera.updateProjectionMatrix();
97+
if( this.camera.updateProjectionMatrix ) this.camera.updateProjectionMatrix();
9898

9999
this.matrix = camera.matrixWorld;
100100
this.matrixAutoUpdate = false;

0 commit comments

Comments
 (0)