From 1b204836e67fc89dcedcd7c407be405a4b335a19 Mon Sep 17 00:00:00 2001 From: Fumiaki MATSUSHIMA Date: Mon, 28 Aug 2023 01:25:03 +0900 Subject: [PATCH] Use mergeGeometries instead of mergeBufferGeometries --- package.json | 2 +- src/content/MSDFText.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index e0360fb6..5afcb141 100644 --- a/package.json +++ b/package.json @@ -51,6 +51,6 @@ "webpack-dev-server": "^4.7.4" }, "peerDependencies": { - "three": ">=0.144.0" + "three": ">=0.151.0" } } diff --git a/src/content/MSDFText.js b/src/content/MSDFText.js index a36c94bf..444326c1 100644 --- a/src/content/MSDFText.js +++ b/src/content/MSDFText.js @@ -1,5 +1,5 @@ import { Mesh } from 'three'; -import { mergeBufferGeometries } from 'three/examples/jsm/utils/BufferGeometryUtils.js'; +import { mergeGeometries } from 'three/examples/jsm/utils/BufferGeometryUtils.js'; import MSDFGlyph from './MSDFGlyph.js'; @@ -103,7 +103,7 @@ function buildText() { } ); - const mergedGeom = mergeBufferGeometries( translatedGeom ); + const mergedGeom = mergeGeometries( translatedGeom ); const mesh = new Mesh( mergedGeom, this.getFontMaterial() );