summaryrefslogtreecommitdiffstats
path: root/editor
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2024-04-04 14:36:47 +0200
committerRémi Verschelde <rverschelde@gmail.com>2024-04-04 14:36:47 +0200
commit4329ccb6e6abd49ac355873cc952c6e0ca282691 (patch)
tree8a4d7aa169b01ab2b199593c3b5a4b88acd586c0 /editor
parent77a9cf0ce88bb33f87101644bcf5931f85892377 (diff)
parent15f1a0fba3c8e576f83427b686ee49291d4e4eff (diff)
downloadredot-engine-4329ccb6e6abd49ac355873cc952c6e0ca282691.tar.gz
Merge pull request #90019 from fire/avoid-bone-map-infinite-loop
Fixed loop condition in bone mapping
Diffstat (limited to 'editor')
-rw-r--r--editor/plugins/bone_map_editor_plugin.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/plugins/bone_map_editor_plugin.cpp b/editor/plugins/bone_map_editor_plugin.cpp
index e80f299f42..848989d8e9 100644
--- a/editor/plugins/bone_map_editor_plugin.cpp
+++ b/editor/plugins/bone_map_editor_plugin.cpp
@@ -1140,7 +1140,7 @@ void BoneMapper::auto_mapping_process(Ref<BoneMap> &p_bone_map) {
children.erase(ls_idx);
children.erase(rs_idx);
String word = "spine"; // It would be better to limit the search with "spine" because it could be mistaken with breast, wing and etc...
- for (int i = 0; children.size(); i++) {
+ for (int i = 0; i < children.size(); i++) {
bone_idx = children[i];
if (is_match_with_bone_name(skeleton->get_bone_name(bone_idx), word)) {
neck = bone_idx;