diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2021-03-29 18:30:56 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-29 18:30:56 +0200 |
commit | 88f404f1ec52b14fd01edfe96a492b17be1ba389 (patch) | |
tree | d307cda5fb5173e979a90f34933b44f113639db3 | |
parent | c6ff6707a4c137eef1e5c6c18465ac584c9d9e16 (diff) | |
parent | d71eed2865458eb90eccb73c5dbfc7d9c898437f (diff) |
Merge pull request #47458 from akien-mga/fbx-fix-bone-suffix
FBX: Fix first bone getting unnecessary '_1' suffix
-rw-r--r-- | modules/fbx/data/fbx_skeleton.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/fbx/data/fbx_skeleton.cpp b/modules/fbx/data/fbx_skeleton.cpp index 622b589feb..1ac4922acf 100644 --- a/modules/fbx/data/fbx_skeleton.cpp +++ b/modules/fbx/data/fbx_skeleton.cpp @@ -69,7 +69,7 @@ void FBXSkeleton::init_skeleton(const ImportState &state) { // Make sure the bone name is unique. const String bone_name = bone->bone_name; int same_name_count = 0; - for (int y = x; y < skeleton_bone_count; y++) { + for (int y = x + 1; y < skeleton_bone_count; y++) { Ref<FBXBone> other_bone = skeleton_bones[y]; if (other_bone.is_valid()) { if (other_bone->bone_name == bone_name) { |