@@ -221,10 +221,10 @@ bool AnimationTrackKeyEdit::_set(const StringName &p_name, const Variant &p_valu
221221 change_notify_deserved = true ;
222222 } else if (name.begins_with (" args/" )) {
223223 Vector<Variant> args = d_old[" args" ];
224- int idx = name.get_slice ( " / " , 1 ).to_int ();
224+ int idx = name.get_slicec ( ' / ' , 1 ).to_int ();
225225 ERR_FAIL_INDEX_V (idx, args.size (), false );
226226
227- String what = name.get_slice ( " / " , 2 );
227+ String what = name.get_slicec ( ' / ' , 2 );
228228 if (what == " type" ) {
229229 Variant::Type t = Variant::Type (int (p_value));
230230
@@ -478,10 +478,10 @@ bool AnimationTrackKeyEdit::_get(const StringName &p_name, Variant &r_ret) const
478478 }
479479
480480 if (name.begins_with (" args/" )) {
481- int idx = name.get_slice ( " / " , 1 ).to_int ();
481+ int idx = name.get_slicec ( ' / ' , 1 ).to_int ();
482482 ERR_FAIL_INDEX_V (idx, args.size (), false );
483483
484- String what = name.get_slice ( " / " , 2 );
484+ String what = name.get_slicec ( ' / ' , 2 );
485485 if (what == " type" ) {
486486 r_ret = args[idx].get_type ();
487487 return true ;
@@ -833,10 +833,10 @@ bool AnimationMultiTrackKeyEdit::_set(const StringName &p_name, const Variant &p
833833 change_notify_deserved = true ;
834834 } else if (name.begins_with (" args/" )) {
835835 Vector<Variant> args = d_old[" args" ];
836- int idx = name.get_slice ( " / " , 1 ).to_int ();
836+ int idx = name.get_slicec ( ' / ' , 1 ).to_int ();
837837 ERR_FAIL_INDEX_V (idx, args.size (), false );
838838
839- String what = name.get_slice ( " / " , 2 );
839+ String what = name.get_slicec ( ' / ' , 2 );
840840 if (what == " type" ) {
841841 Variant::Type t = Variant::Type (int (p_value));
842842
@@ -1055,10 +1055,10 @@ bool AnimationMultiTrackKeyEdit::_get(const StringName &p_name, Variant &r_ret)
10551055 }
10561056
10571057 if (name.begins_with (" args/" )) {
1058- int idx = name.get_slice ( " / " , 1 ).to_int ();
1058+ int idx = name.get_slicec ( ' / ' , 1 ).to_int ();
10591059 ERR_FAIL_INDEX_V (idx, args.size (), false );
10601060
1061- String what = name.get_slice ( " / " , 2 );
1061+ String what = name.get_slicec ( ' / ' , 2 );
10621062 if (what == " type" ) {
10631063 r_ret = args[idx].get_type ();
10641064 return true ;
@@ -3324,7 +3324,7 @@ Variant AnimationTrackEdit::get_drag_data(const Point2 &p_point) {
33243324 Dictionary drag_data;
33253325 drag_data[" type" ] = " animation_track" ;
33263326 String base_path = animation->track_get_path (track);
3327- base_path = base_path.get_slice ( " : " , 0 ); // Remove sub-path.
3327+ base_path = base_path.get_slicec ( ' : ' , 0 ); // Remove sub-path.
33283328 drag_data[" group" ] = base_path;
33293329 drag_data[" index" ] = track;
33303330
@@ -3355,7 +3355,7 @@ bool AnimationTrackEdit::can_drop_data(const Point2 &p_point, const Variant &p_d
33553355 // Don't allow moving tracks outside their groups.
33563356 if (get_editor ()->is_grouping_tracks ()) {
33573357 String base_path = animation->track_get_path (track);
3358- base_path = base_path.get_slice ( " : " , 0 ); // Remove sub-path.
3358+ base_path = base_path.get_slicec ( ' : ' , 0 ); // Remove sub-path.
33593359 if (d[" group" ] != base_path) {
33603360 return false ;
33613361 }
@@ -3386,7 +3386,7 @@ void AnimationTrackEdit::drop_data(const Point2 &p_point, const Variant &p_data)
33863386 // Don't allow moving tracks outside their groups.
33873387 if (get_editor ()->is_grouping_tracks ()) {
33883388 String base_path = animation->track_get_path (track);
3389- base_path = base_path.get_slice ( " : " , 0 ); // Remove sub-path.
3389+ base_path = base_path.get_slicec ( ' : ' , 0 ); // Remove sub-path.
33903390 if (d[" group" ] != base_path) {
33913391 return ;
33923392 }
@@ -4935,7 +4935,7 @@ void AnimationTrackEditor::_update_tracks() {
49354935
49364936 if (use_grouping) {
49374937 String base_path = animation->track_get_path (i);
4938- base_path = base_path.get_slice ( " : " , 0 ); // Remove sub-path.
4938+ base_path = base_path.get_slicec ( ' : ' , 0 ); // Remove sub-path.
49394939
49404940 if (!group_sort.has (base_path)) {
49414941 AnimationTrackEditGroup *g = memnew (AnimationTrackEditGroup);
0 commit comments