You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-19 14:31:59 +00:00
FBX: Fix first bone getting unnecessary '_1' suffix
Fixes #43820. Co-authored-by: Gordon MacPherson <gordon@gordonite.tech>
This commit is contained in:
@@ -69,7 +69,7 @@ void FBXSkeleton::init_skeleton(const ImportState &state) {
|
|||||||
// Make sure the bone name is unique.
|
// Make sure the bone name is unique.
|
||||||
const String bone_name = bone->bone_name;
|
const String bone_name = bone->bone_name;
|
||||||
int same_name_count = 0;
|
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];
|
Ref<FBXBone> other_bone = skeleton_bones[y];
|
||||||
if (other_bone.is_valid()) {
|
if (other_bone.is_valid()) {
|
||||||
if (other_bone->bone_name == bone_name) {
|
if (other_bone->bone_name == bone_name) {
|
||||||
|
|||||||
Reference in New Issue
Block a user