three-mesh-ui icon indicating copy to clipboard operation
three-mesh-ui copied to clipboard

Use mergeGeometries instead of mergeBufferGeometries

Open mtsmfm opened this issue 1 year ago • 0 comments

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.

mtsmfm avatar Aug 27 '23 16:08 mtsmfm