Skip to content

Commit

Permalink
clipping-version-fix
Browse files Browse the repository at this point in the history
  • Loading branch information
aardgoose committed Aug 22, 2024
1 parent 7da9ab3 commit aec7b8c
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/renderers/common/ClippingContext.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,11 @@ import { Vector4 } from '../../math/Vector4.js';

const _plane = /*@__PURE__*/ new Plane();

let _clippingContextVersion = 0;

class ClippingContext {

constructor() {

this.version = ++ _clippingContextVersion;
this.version = 0;

this.globalClippingCount = 0;

Expand Down Expand Up @@ -93,7 +91,7 @@ class ClippingContext {

}

if ( update ) this.version = _clippingContextVersion ++;
if ( update ) this.version ++;

}

Expand Down Expand Up @@ -158,7 +156,7 @@ class ClippingContext {

}

if ( update ) this.version = _clippingContextVersion ++;
if ( update ) this.version += parent.version;

}

Expand Down

0 comments on commit aec7b8c

Please sign in to comment.