Update tinyusdz (#5849)

* Update tinyusdz to latest git commit

* Update patch file

* Bump to latest tinyusdz version

* Remove unused var (fix broken build for clients treating warnings-as-errors)

---------

Co-authored-by: Steve M <praktique-tellypresence@yahoo.com>
This commit is contained in:
Steve M
2024-11-01 03:33:50 -07:00
committed by GitHub
parent 7634cf84ca
commit 401279e2f9
3 changed files with 11 additions and 13 deletions

View File

@@ -278,8 +278,6 @@ void USDImporterImplTinyusdz::verticesForMesh(
std::vector<const tinyusdz::tydra::SkelNode *> skeletonNodes;
skeletonNodes.push_back(&render_scene.skeletons[skeleton_id].root_node);
for (int i = 0; i < skeletonNodes.size(); ++i) {
const tinyusdz::tydra::SkelNode *skeletonNode = skeletonNodes[i];
for (const auto &child : skeletonNodes[i]->children) {
skeletonNodes.push_back(&child);
}
@@ -319,7 +317,7 @@ void USDImporterImplTinyusdz::verticesForMesh(
aiBonesVertexWeights[jointIndex].emplace_back(vertexIndex, jointWeight);
}
}
}
}
for (int boneIndex = 0; boneIndex < numBones; ++boneIndex) {
const unsigned int numWeightsForBone = aiBonesVertexWeights[boneIndex].size();
@@ -767,12 +765,12 @@ aiNode *USDImporterImplTinyusdz::nodesRecursive(
cNode->mChildren[i] = nodesRecursive(cNode, childNode, skeletons);
++i;
}
if (skelNode != nullptr) {
// Convert USD skeleton into an Assimp node and make it the last child
cNode->mChildren[cNode->mNumChildren-1] = skeletonNodesRecursive(cNode, *skelNode);
}
return cNode;
}
@@ -796,7 +794,7 @@ aiNode *USDImporterImplTinyusdz::skeletonNodesRecursive(
const tinyusdz::tydra::SkelNode &childJoint = joint.children[i];
cNode->mChildren[i] = skeletonNodesRecursive(cNode, childJoint);
}
return cNode;
}

View File

@@ -944,8 +944,8 @@ IF (ASSIMP_BUILD_USD_IMPORTER)
# Note: ALWAYS specify a git commit hash (or tag) instead of a branch name; using a branch
# name can lead to non-deterministic (unpredictable) results since the code is potentially
# in flux
# "dev" branch, 9 Jul 2024
set(TINYUSDZ_GIT_TAG "bd2a1edbbf69f352a6c40730114db9918c384848")
# "dev" branch, 28 Oct 2024
set(TINYUSDZ_GIT_TAG "36f2aabb256b360365989c01a52f839a57dfe2a6")
message("****")
message("\n\n**** Cloning tinyusdz repo, git tag ${TINYUSDZ_GIT_TAG}\n\n")