mirror of
https://git.mirrors.martin98.com/https://github.com/syoyo/tinygltf.git
synced 2025-09-23 18:53:13 +08:00
Fix build.
This commit is contained in:
parent
1b85cb8c59
commit
876f6e194e
@ -785,7 +785,7 @@ static void ConstructNodeMatrix(const tinygltf::Node &node, example::mat4 *xform
|
|||||||
//
|
//
|
||||||
// Hierarchically evalute skining matrix
|
// Hierarchically evalute skining matrix
|
||||||
//
|
//
|
||||||
static void ApplySkinningToMesh(const tinygltf::model &model, const tinygltf::Node &node, example::mat4 &parent_xform, std::vector<SkinnedMesh> *skinned_meshes) {
|
static void ApplySkinningToMesh(const tinygltf::Model &model, const tinygltf::Node &node, example::mat4 &parent_xform, std::vector<SkinnedMesh> *skinned_meshes) {
|
||||||
example::mat4 xform = parent_xform;
|
example::mat4 xform = parent_xform;
|
||||||
|
|
||||||
if (node.mesh) {
|
if (node.mesh) {
|
||||||
@ -794,7 +794,7 @@ static void ApplySkinningToMesh(const tinygltf::model &model, const tinygltf::No
|
|||||||
}
|
}
|
||||||
|
|
||||||
for (auto &child : node.children) {
|
for (auto &child : node.children) {
|
||||||
ApplySkinningToMesh(model.nodes[child], xform, skinned_meshes);
|
ApplySkinningToMesh(model, model.nodes[child], xform, skinned_meshes);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user