From 7c5ae12cc5ea9fb6669abb1b714abd07d6eee525 Mon Sep 17 00:00:00 2001 From: Niels <47059882+Niels-IO@users.noreply.github.com> Date: Tue, 14 Nov 2023 09:37:24 +0100 Subject: [PATCH] Fix ClipPlane.jsx Fixes the Clipping Plane crash --- packages/studio/src/ClipPlane.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/studio/src/ClipPlane.jsx b/packages/studio/src/ClipPlane.jsx index 8e5d976..b33779b 100644 --- a/packages/studio/src/ClipPlane.jsx +++ b/packages/studio/src/ClipPlane.jsx @@ -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(