| 605 | } |
| 606 | |
| 607 | void xModelGetBoneMat(xMat4x3& mat, const xModelInstance& model, size_t index) |
| 608 | { |
| 609 | const xMat4x3& root_mat = *(xMat4x3*)model.Mat; |
| 610 | if (index == 0) |
| 611 | { |
| 612 | mat = root_mat; |
| 613 | return; |
| 614 | } |
| 615 | const xMat4x3& anim_mat = *(xMat4x3*)(model.Mat + index); |
| 616 | xMat4x3Mul(&mat, &anim_mat, &root_mat); |
| 617 | } |
no test coverage detected