Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
zhouhang95 committed Aug 5, 2024
1 parent 7d4c40b commit 246cfc1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions projects/FBX/FBXSDK.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -609,7 +609,7 @@ void TraverseNodesToGetPrim(FbxNode* pNode, std::string target_name, std::shared

FbxMesh* mesh = pNode->GetMesh();
if (mesh) {
auto name = mesh->GetName();
auto name = pNode->GetName();
if (target_name == name) {
auto sub_prim = GetMesh(pNode);
if (sub_prim) {
Expand All @@ -628,7 +628,6 @@ void TraverseNodesToGetPrims(FbxNode* pNode, std::vector<std::shared_ptr<Primiti

FbxMesh* mesh = pNode->GetMesh();
if (mesh) {
auto name = mesh->GetName();
auto sub_prim = GetMesh(pNode);
if (sub_prim) {
prims.push_back(sub_prim);
Expand Down

0 comments on commit 246cfc1

Please sign in to comment.