diff options
| author | Stijn Hinlopen <f.a.hinlopen@gmail.com> | 2020-07-03 15:26:22 +0200 |
|---|---|---|
| committer | Stijn Hinlopen <f.a.hinlopen@gmail.com> | 2020-07-03 15:26:22 +0200 |
| commit | 929b98d24b53789b3e3fbbae90aed0fe0e72b409 (patch) | |
| tree | 89156a4e626da2bef5305bee55d785f5e77aec46 /editor/animation_track_editor.cpp | |
| parent | fd5b6e1db24facfbb6d5e9175b8e512c25fbde1d (diff) | |
| download | redot-engine-929b98d24b53789b3e3fbbae90aed0fe0e72b409.tar.gz | |
Remove String::find_last (same as rfind)
Diffstat (limited to 'editor/animation_track_editor.cpp')
| -rw-r--r-- | editor/animation_track_editor.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/editor/animation_track_editor.cpp b/editor/animation_track_editor.cpp index f36e84dab6..1d6770a32e 100644 --- a/editor/animation_track_editor.cpp +++ b/editor/animation_track_editor.cpp @@ -3557,7 +3557,7 @@ void AnimationTrackEditor::insert_node_value_key(Node *p_node, const String &p_p if (track_path == np) { value = p_value; //all good } else { - int sep = track_path.find_last(":"); + int sep = track_path.rfind(":"); if (sep != -1) { String base_path = track_path.substr(0, sep); if (base_path == np) { @@ -3656,7 +3656,7 @@ void AnimationTrackEditor::insert_value_key(const String &p_property, const Vari value = p_value; //all good } else { String tpath = animation->track_get_path(i); - int index = tpath.find_last(":"); + int index = tpath.rfind(":"); if (NodePath(tpath.substr(0, index + 1)) == np) { String subindex = tpath.substr(index + 1, tpath.length() - index); value = p_value.get(subindex); |
