Skip to content

Commit

Permalink
Fix ClipPlane.jsx
Browse files Browse the repository at this point in the history
Fixes the Clipping Plane crash
  • Loading branch information
Niels-IO authored Nov 14, 2023
1 parent a1f85c0 commit 7c5ae12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/studio/src/ClipPlane.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ export default function ClipPlane({ clippingPlane, sideColor, children }) {
node.material = backFaceStencilMat;
});

const planeGeom = new THREE.PlaneBufferGeometry();
const planeGeom = new THREE.PlaneGeometry();
const planeMesh = new THREE.Mesh(planeGeom, planeStencilMat);

planeMesh.quaternion.setFromUnitVectors(
Expand Down

0 comments on commit 7c5ae12

Please sign in to comment.