engine
engine copied to clipboard
Shape key / morph key bug
After the v1.55.3 update basic animations using shape keys / morph keys break, producing this runtime error:
ASSERT FAILED: Cannot find morph target with name: 0
I have reproduced the error in this open project: Example project The icososphere model ('Test_shapeKeys') has been imported from Blender as an FBX file and automatically converted to GLB in Playcanvas. The animation is all in one file and played on loop using an animation state graph. The model is supposed to deform right after doing the jump. Instead it produces multiple errors as decribed above. Both the jump and deform are driven by bones, but the former by weights and the latter by shape keys.
When deformed the icososphere is supposed to look like this:
While in Playcanvas looks like this:
Reverting to the previous version removes the error.
https://github.com/playcanvas/engine/issues/4520