Skip to content

Commit

Permalink
Merge pull request #1976 from zenustech/improve-fbx
Browse files Browse the repository at this point in the history
add abcpath
  • Loading branch information
ShuliangLu authored Aug 6, 2024
2 parents bcb67bb + d6cd460 commit e3b30a1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion projects/FBX/FBXSDK.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -587,6 +587,7 @@ std::shared_ptr<PrimitiveObject> GetMesh(FbxNode* pNode) {
if (pMesh->GetElementTangentCount() > 0) {
getAttr(pMesh->GetElementTangent(0), "tang", prim);
}
prim_set_abcpath(prim.get(), format("/ABC/{}", nodeName));
return prim;
}

Expand Down Expand Up @@ -697,7 +698,7 @@ struct NewFBXImportSkin : INode {
}
}
}
prim = primMerge(prims_ptr);
prim = primMergeWithFacesetMatid(prims_ptr);
prim->userData().set2("boneName_count", int(nameMappingGlobal.size()));
prim->userData().set2("maxnum_boneWeight", maxnum_boneWeight);
for (auto [key, value]: nameMappingGlobal) {
Expand Down

0 comments on commit e3b30a1

Please sign in to comment.