From 9c296bcb59c9957919b6c210af859f19269342c0 Mon Sep 17 00:00:00 2001 From: Bastiaan Olij Date: Tue, 2 Mar 2021 10:55:29 +1100 Subject: [PATCH] Fix duplicate check for bone names in FBX import --- modules/fbx/data/fbx_skeleton.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/fbx/data/fbx_skeleton.cpp b/modules/fbx/data/fbx_skeleton.cpp index c34caaaa042..56ee09f4f5c 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 other_bone = skeleton_bones[y]; if (other_bone.is_valid()) { if (other_bone->bone_name == bone_name) {