mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-14 00:55:20 +02:00
Refactor global inversed matrix usage (+ minor fix)
Thanks to GreenXenith and Josiah for spotting a bug here
This commit is contained in:
committed by
Lars Müller
parent
224066c1d3
commit
d8274af670
@@ -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);
|
||||
|
Reference in New Issue
Block a user