The problem is that Custom Shape Bones can also have a custom size.
So the pchan->disp_mat doesn't always consider the actual length of the bone.
The proposed solution is to calculate the axes matrix at the drawing pass.
Ref T65640
Differential D5049
Fix T65640: Axis of Custom Shape Bones are drawn in a wrong position. Authored by Germano Cavalcante (mano-wii) on Jun 10 2019, 1:42 AM. Tags None Subscribers None
Details The problem is that Custom Shape Bones can also have a custom size. Ref T65640
Diff Detail
Event TimelineComment Actions I'm going to commit a slightly different version where I optimized the matrix mul and only do that if custom bones are effectly used. |