cocos-engine
cocos-engine copied to clipboard
WebGL2 keep showing unbound buffer when change skinning mesh root
Cocos Creator version
3.8.0
System information
test on mac 13.4 chrome
Issue description
When changing node of skinned model, webgl keep telling there are unbound buffers.
Somehow we noticed:
- when change hairstyle of a human model, node is updated;
- skiningRoot setter triggered;
- tryBindAnimation in skinning root setter binds gfx buffer to descriptor set;
- update -> ensureEnoughBuffers in skinning root setter destroy original buffers but without updating descriptor set; thus error occurred when drawing.
Relevant error log output
No response
Steps to reproduce
Change node of skinned model, like change another hairstyle of a human model.
Minimal reproduction project
No response
@wuzhiming any progress will be updated here
A possible solution: