From ce73a1b3d635f3554690620063becedca541e189 Mon Sep 17 00:00:00 2001 From: Cody Bennett <23324155+CodyJasonBennett@users.noreply.github.com> Date: Mon, 10 Oct 2022 03:38:41 -0500 Subject: [PATCH] fix: don't import from three/examples --- src/core/CatmullRomLine.tsx | 2 +- src/core/CubicBezierLine.tsx | 2 +- src/core/QuadraticBezierLine.tsx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/core/CatmullRomLine.tsx b/src/core/CatmullRomLine.tsx index 20a2df581..f21cc0088 100644 --- a/src/core/CatmullRomLine.tsx +++ b/src/core/CatmullRomLine.tsx @@ -1,6 +1,6 @@ import * as React from 'react' import { CatmullRomCurve3, Color, Vector3 } from 'three' -import { Line2 } from 'three/examples/jsm/lines/Line2' +import { Line2 } from 'three-stdlib' import { Line, LineProps } from './Line' type Props = Omit & { diff --git a/src/core/CubicBezierLine.tsx b/src/core/CubicBezierLine.tsx index 022282896..74481fc0c 100644 --- a/src/core/CubicBezierLine.tsx +++ b/src/core/CubicBezierLine.tsx @@ -1,6 +1,6 @@ import * as React from 'react' import { CubicBezierCurve3, Vector3 } from 'three' -import { Line2 } from 'three/examples/jsm/lines/Line2' +import { Line2 } from 'three-stdlib' import { Line, LineProps } from './Line' type Props = Omit & { diff --git a/src/core/QuadraticBezierLine.tsx b/src/core/QuadraticBezierLine.tsx index af2fa6472..189c73278 100644 --- a/src/core/QuadraticBezierLine.tsx +++ b/src/core/QuadraticBezierLine.tsx @@ -1,6 +1,6 @@ import * as React from 'react' import { QuadraticBezierCurve3, Vector3 } from 'three' -import { Line2 } from 'three/examples/jsm/lines/Line2' +import { Line2 } from 'three-stdlib' import mergeRefs from 'react-merge-refs' import { Line, LineProps } from './Line' import { Object3DNode } from '@react-three/fiber'