Skip to content

Commit cf72aeb

Browse files
rhuitlHugo Campos
authored andcommitted
fix: clipping of nodes when CLIP_OUTSIDE is set (#45)
1 parent 6a39757 commit cf72aeb

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/potree.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -291,11 +291,11 @@ export class Potree implements IPotree {
291291
new Vector3(0.5, 0.5, 0.5),
292292
).applyMatrix4(clipMatrixWorld);
293293
if (box2.intersectsBox(clipBoxWorld)) {
294-
return true;
294+
return false;
295295
}
296296
}
297297

298-
return false;
298+
return true;
299299
}
300300

301301
private updateVisibilityStructures = (() => {

0 commit comments

Comments
 (0)