Skip to content

Commit a9cfdfa

Browse files
committed
Fix - support clipping for tracks and points
1 parent 6dd967c commit a9cfdfa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/JSRootGeoPainter.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1679,7 +1679,7 @@
16791679

16801680
var painter = this;
16811681
this._scene.traverse( function (node) {
1682-
if (node instanceof THREE.Mesh) {
1682+
if (node.material && (node.material.clippingPlanes!==undefined)) {
16831683
node.material.clipIntersection = painter.clipIntersection;
16841684
node.material.clippingPlanes = [];
16851685
if (painter.enableX) node.material.clippingPlanes.push(painter._clipPlanes[0]);

0 commit comments

Comments
 (0)