diff options
| author | Rémi Verschelde <rverschelde@gmail.com> | 2021-07-26 17:50:35 +0200 |
|---|---|---|
| committer | Rémi Verschelde <rverschelde@gmail.com> | 2021-07-26 19:27:11 +0200 |
| commit | 92299989bd10fd9855b6d77bc2bfabae218d1eea (patch) | |
| tree | 7102f96ac3722e82c2cae7ad8bd4a5b5e7961989 /editor/plugins/sprite_frames_editor_plugin.cpp | |
| parent | fef27e9b5b9b125ff535513c80b45953e8717f7d (diff) | |
| download | redot-engine-92299989bd10fd9855b6d77bc2bfabae218d1eea.tar.gz | |
Use Ref<T> references as iterators where relevant
And const when possible.
Diffstat (limited to 'editor/plugins/sprite_frames_editor_plugin.cpp')
| -rw-r--r-- | editor/plugins/sprite_frames_editor_plugin.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/plugins/sprite_frames_editor_plugin.cpp b/editor/plugins/sprite_frames_editor_plugin.cpp index a5d0ebbc12..42f7d23da2 100644 --- a/editor/plugins/sprite_frames_editor_plugin.cpp +++ b/editor/plugins/sprite_frames_editor_plugin.cpp @@ -365,7 +365,7 @@ void SpriteFramesEditor::_file_load_request(const Vector<String> &p_path, int p_ int count = 0; - for (Ref<Texture2D> &E : resources) { + for (const Ref<Texture2D> &E : resources) { undo_redo->add_do_method(frames, "add_frame", edited_anim, E, p_at_pos == -1 ? -1 : p_at_pos + count); undo_redo->add_undo_method(frames, "remove_frame", edited_anim, p_at_pos == -1 ? fc : p_at_pos); count++; |
