three-mesh-ui
three-mesh-ui copied to clipboard
Use mergeGeometries instead of mergeBufferGeometries
Thank you for maintaining awesome library.
Since r151 mergeGeometries
is preferrable.
https://github.com/mrdoob/three.js/pull/25652
I checked past PR which addressed similar deprecation warn https://github.com/felixmariotto/three-mesh-ui/pull/230 I believe this library encourages users to update three.js version so I've updated package.json instead of keeping backward compatibility like the following:
import BufferGeometryUtils from 'three/examples/jsm/utils/BufferGeometryUtils.js';
const mergeGeometries =
BufferGeometryUtils.mergeGeometries ||
BufferGeometryUtils.mergeBufferGeometries;
Please let me know if you have a concern.