meshcat-dev / meshcat

Remotely-controllable 3D viewer, built on top of three.js
MIT License
250 stars 44 forks source link

fix mergeBufferGeometries import #99

Closed nim65s closed 3 years ago

nim65s commented 3 years ago

Hello,

I got the following warning with npm run build:

WARNING in ./src/index.js 39:17-58
export 'BufferGeometryUtils' (imported as 'BufferGeometryUtils') was not found in 'three/examples/jsm/utils/BufferGeometryUtils.js' 
(possible exports: computeMorphedAttributes, computeTangents, estimateBytesUsed, interleaveAttributes, mergeBufferAttributes, mergeBufferGeometries, mergeVertices, toTrianglesDrawMode)

And objects with multiple meshes wouldn't appear correctly on my browser. The fix is straightforward :)

rdeits commented 3 years ago

Ah, yup, you're right. I must have missed this when I updated three.js. Thanks for the fix!