mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 00:25:19 +02:00
Fix glTF reader not ignoring parent transforms for skinned meshes
This commit is contained in:
committed by
Lars Müller
parent
0d414c44da
commit
5113fcaedd
@@ -426,6 +426,9 @@ void SelfType::MeshExtractor::addPrimitive(
|
||||
throw std::runtime_error("too many vertices");
|
||||
|
||||
// Apply the global transform along the parent chain.
|
||||
// "Only the joint transforms are applied to the skinned mesh;
|
||||
// the transform of the skinned mesh node MUST be ignored."
|
||||
if (!skinIdx)
|
||||
transformVertices(*vertices, parent->GlobalMatrix);
|
||||
|
||||
auto maybeIndices = getIndices(primitive);
|
||||
|
Reference in New Issue
Block a user