Skip to content

Commit

Permalink
ArrayCamera: Removed enabled property.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrdoob committed Jun 1, 2017
1 parent 58106f5 commit 1fa2fd4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/cameras/ArrayCamera.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ function ArrayCamera( array ) {

PerspectiveCamera.call( this );

this.enabled = false;
this.cameras = array || [];

}
Expand Down
4 changes: 2 additions & 2 deletions src/renderers/WebGLRenderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -1273,7 +1273,7 @@ function WebGLRenderer( parameters ) {
state.buffers.depth.setMask( true );
state.buffers.color.setMask( true );

if ( camera.isArrayCamera && camera.enabled ) {
if ( camera.isArrayCamera ) {

_this.setScissorTest( false );

Expand Down Expand Up @@ -1447,7 +1447,7 @@ function WebGLRenderer( parameters ) {

object.onBeforeRender( _this, scene, camera, geometry, material, group );

if ( camera.isArrayCamera && camera.enabled ) {
if ( camera.isArrayCamera ) {

var cameras = camera.cameras;

Expand Down

0 comments on commit 1fa2fd4

Please sign in to comment.