You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-17 14:11:06 +00:00
Remove String::find_last (same as rfind)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user