mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Refactor global inversed matrix usage (+ minor fix)
Thanks to GreenXenith and Josiah for spotting a bug here
This commit is contained in:
parent
224066c1d3
commit
d8274af670
4 changed files with 16 additions and 10 deletions
|
@ -990,9 +990,9 @@ bool CXMeshFileLoader::parseDataObjectSkinWeights(SXMesh &mesh)
|
|||
// transforms the mesh vertices to the space of the bone
|
||||
// When concatenated to the bone's transform, this provides the
|
||||
// world space coordinates of the mesh as affected by the bone
|
||||
core::matrix4 &MatrixOffset = joint->GlobalInversedMatrix;
|
||||
|
||||
core::matrix4 MatrixOffset;
|
||||
readMatrix(MatrixOffset);
|
||||
joint->GlobalInversedMatrix = MatrixOffset;
|
||||
|
||||
if (!checkForOneFollowingSemicolons()) {
|
||||
os::Printer::log("No finishing semicolon in Skin Weights found in x file", ELL_WARNING);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue