Skip to content

Commit

Permalink
EffectComposer: Check if MaskPass is defined. Fixes #9042.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrdoob committed May 31, 2016
1 parent c061693 commit 257024c
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions examples/js/postprocessing/EffectComposer.js
Expand Up @@ -91,13 +91,17 @@ Object.assign( THREE.EffectComposer.prototype, {

}

if ( pass instanceof THREE.MaskPass ) {
if ( THREE.MaskPass !== undefined ) {

maskActive = true;
if ( pass instanceof THREE.MaskPass ) {

} else if ( pass instanceof THREE.ClearMaskPass ) {
maskActive = true;

maskActive = false;
} else if ( pass instanceof THREE.ClearMaskPass ) {

maskActive = false;

}

}

Expand Down

0 comments on commit 257024c

Please sign in to comment.