[backport core/1.36] fix: disable frustum culling for SkinnedMesh to prevent clipping during animation (#7988)

Backport of #7856 to `core/1.36`

Automatically created by backport workflow.

┆Issue is synchronized with this [Notion
page](https://www.notion.so/PR-7988-backport-core-1-36-fix-disable-frustum-culling-for-SkinnedMesh-to-prevent-clipping-dur-2e76d73d3650811c8f4bd904df44c9e7)
by [Unito](https://www.unito.io)

Co-authored-by: Terry Jia <terryjia88@gmail.com>
This commit is contained in:
Comfy Org PR Bot
2026-01-13 13:08:32 +09:00
committed by GitHub
parent e12444abca
commit b71cd7ab9a

View File

@@ -160,6 +160,10 @@ export class LoaderManager implements LoaderManagerInterface {
fbxModel.traverse((child) => {
if (child instanceof THREE.Mesh) {
this.modelManager.originalMaterials.set(child, child.material)
if (child instanceof THREE.SkinnedMesh) {
child.frustumCulled = false
}
}
})
break
@@ -203,6 +207,10 @@ export class LoaderManager implements LoaderManagerInterface {
if (child instanceof THREE.Mesh) {
child.geometry.computeVertexNormals()
this.modelManager.originalMaterials.set(child, child.material)
if (child instanceof THREE.SkinnedMesh) {
child.frustumCulled = false
}
}
})
break