diff options
| author | Rémi Verschelde <rverschelde@gmail.com> | 2021-07-24 15:46:25 +0200 |
|---|---|---|
| committer | Rémi Verschelde <rverschelde@gmail.com> | 2021-07-25 12:22:25 +0200 |
| commit | ac3322b0af8f23e8e2dac8111200bc69b5604c9f (patch) | |
| tree | 59a079f13b5c03c2dd3328a26c55f3618e6014f6 /editor/plugins/root_motion_editor_plugin.cpp | |
| parent | a0f7f42b842462646281f5c4c9a8db070e034adc (diff) | |
| download | redot-engine-ac3322b0af8f23e8e2dac8111200bc69b5604c9f.tar.gz | |
Use const references where possible for List range iterators
Diffstat (limited to 'editor/plugins/root_motion_editor_plugin.cpp')
| -rw-r--r-- | editor/plugins/root_motion_editor_plugin.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/plugins/root_motion_editor_plugin.cpp b/editor/plugins/root_motion_editor_plugin.cpp index 95e23d0c57..ed91f174d1 100644 --- a/editor/plugins/root_motion_editor_plugin.cpp +++ b/editor/plugins/root_motion_editor_plugin.cpp @@ -70,7 +70,7 @@ void EditorPropertyRootMotion::_node_assign() { List<StringName> animations; player->get_animation_list(&animations); - for (StringName &E : animations) { + for (const StringName &E : animations) { Ref<Animation> anim = player->get_animation(E); for (int i = 0; i < anim->get_track_count(); i++) { paths.insert(anim->track_get_path(i)); |
