Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在 three.js 的 r56 版本中,这是有效的
geometry.verticesNeedUpdate = true
在新的r58版本中它不是,我该怎么办?
迁移文档解释了版本之间的API 更改:
如果您使用的是BufferGeometry,geometry.verticesNeedUpdate则已更改为geometry.attributes.index.needsUpdate.
geometry.verticesNeedUpdate
geometry.attributes.index.needsUpdate