@@ -2191,7 +2191,7 @@ void AnimationTrackEdit::_notification(int p_what) {
21912191 } else {
21922192 icon_cache = key_type_icon;
21932193
2194- text = anim_path;
2194+ text = String ( anim_path) ;
21952195 }
21962196
21972197 path_cache = text;
@@ -2822,7 +2822,7 @@ String AnimationTrackEdit::get_tooltip(const Point2 &p_pos) const {
28222822
28232823 // Don't overlap track keys if they start at 0.
28242824 if (path_rect.has_point (p_pos + Size2 (type_icon->get_width (), 0 ))) {
2825- return animation->track_get_path (track);
2825+ return String ( animation->track_get_path (track) );
28262826 }
28272827
28282828 if (update_mode_rect.has_point (p_pos)) {
@@ -3230,7 +3230,7 @@ void AnimationTrackEdit::gui_input(const Ref<InputEvent> &p_event) {
32303230 path->connect (SceneStringName (text_submitted), callable_mp (this , &AnimationTrackEdit::_path_submitted));
32313231 }
32323232
3233- path->set_text (animation->track_get_path (track));
3233+ path->set_text (String ( animation->track_get_path (track) ));
32343234 const Vector2 theme_ofs = path->get_theme_stylebox (CoreStringName (normal), SNAME (" LineEdit" ))->get_offset ();
32353235
32363236 moving_selection_attempt = false ;
@@ -3462,7 +3462,7 @@ Variant AnimationTrackEdit::get_drag_data(const Point2 &p_point) {
34623462
34633463 Dictionary drag_data;
34643464 drag_data[" type" ] = " animation_track" ;
3465- String base_path = animation->track_get_path (track);
3465+ String base_path = String ( animation->track_get_path (track) );
34663466 base_path = base_path.get_slicec (' :' , 0 ); // Remove sub-path.
34673467 drag_data[" group" ] = base_path;
34683468 drag_data[" index" ] = track;
@@ -3493,7 +3493,7 @@ bool AnimationTrackEdit::can_drop_data(const Point2 &p_point, const Variant &p_d
34933493
34943494 // Don't allow moving tracks outside their groups.
34953495 if (get_editor ()->is_grouping_tracks ()) {
3496- String base_path = animation->track_get_path (track);
3496+ String base_path = String ( animation->track_get_path (track) );
34973497 base_path = base_path.get_slicec (' :' , 0 ); // Remove sub-path.
34983498 if (d[" group" ] != base_path) {
34993499 return false ;
@@ -3524,7 +3524,7 @@ void AnimationTrackEdit::drop_data(const Point2 &p_point, const Variant &p_data)
35243524
35253525 // Don't allow moving tracks outside their groups.
35263526 if (get_editor ()->is_grouping_tracks ()) {
3527- String base_path = animation->track_get_path (track);
3527+ String base_path = String ( animation->track_get_path (track) );
35283528 base_path = base_path.get_slicec (' :' , 0 ); // Remove sub-path.
35293529 if (d[" group" ] != base_path) {
35303530 return ;
@@ -4370,7 +4370,7 @@ void AnimationTrackEditor::insert_transform_key(Node3D *p_node, const String &p_
43704370 }
43714371
43724372 // Let's build a node path.
4373- String path = root->get_path_to (p_node, true );
4373+ String path = String ( root->get_path_to (p_node, true ) );
43744374 if (!p_sub.is_empty ()) {
43754375 path += " :" + p_sub;
43764376 }
@@ -4410,7 +4410,7 @@ bool AnimationTrackEditor::has_track(Node3D *p_node, const String &p_sub, const
44104410 }
44114411
44124412 // Let's build a node path.
4413- String path = root->get_path_to (p_node, true );
4413+ String path = String ( root->get_path_to (p_node, true ) );
44144414 if (!p_sub.is_empty ()) {
44154415 path += " :" + p_sub;
44164416 }
@@ -4423,11 +4423,11 @@ bool AnimationTrackEditor::has_track(Node3D *p_node, const String &p_sub, const
44234423}
44244424
44254425void AnimationTrackEditor::_insert_animation_key (NodePath p_path, const Variant &p_value) {
4426- String path = p_path;
4426+ String path = String ( p_path) ;
44274427
44284428 // Animation property is a special case, always creates an animation track.
44294429 for (int i = 0 ; i < animation->get_track_count (); i++) {
4430- String np = animation->track_get_path (i);
4430+ String np = String ( animation->track_get_path (i) );
44314431
44324432 if (path == np && animation->track_get_type (i) == Animation::TYPE_ANIMATION) {
44334433 // Exists.
@@ -4460,7 +4460,7 @@ void AnimationTrackEditor::insert_node_value_key(Node *p_node, const String &p_p
44604460 ERR_FAIL_NULL (root);
44614461
44624462 // Let's build a node path.
4463- String path = root->get_path_to (p_node, true );
4463+ String path = String ( root->get_path_to (p_node, true ) );
44644464
44654465 // Get the value from the subpath.
44664466 Vector<StringName> subpath = NodePath (p_property).get_as_property_path ().get_subnames ();
@@ -4509,14 +4509,14 @@ void AnimationTrackEditor::insert_node_value_key(Node *p_node, const String &p_p
45094509 inserted = true ;
45104510 } else if (animation->track_get_type (i) == Animation::TYPE_BEZIER) {
45114511 Variant actual_value;
4512- String track_path = animation->track_get_path (i);
4513- if (track_path == np ) {
4512+ String track_path = String ( animation->track_get_path (i) );
4513+ if (track_path == String (np) ) {
45144514 actual_value = value; // All good.
45154515 } else {
45164516 int sep = track_path.rfind_char (' :' );
45174517 if (sep != -1 ) {
45184518 String base_path = track_path.substr (0 , sep);
4519- if (base_path == np ) {
4519+ if (base_path == String (np) ) {
45204520 String value_name = track_path.substr (sep + 1 );
45214521 actual_value = value.get (value_name);
45224522 } else {
@@ -5017,7 +5017,7 @@ void AnimationTrackEditor::_update_tracks() {
50175017 String filter_text = timeline->filter_track ->get_text ();
50185018
50195019 if (!filter_text.is_empty ()) {
5020- String target = animation->track_get_path (i);
5020+ String target = String ( animation->track_get_path (i) );
50215021 if (!target.containsn (filter_text)) {
50225022 continue ;
50235023 }
@@ -5087,7 +5087,7 @@ void AnimationTrackEditor::_update_tracks() {
50875087 track_edits.push_back (track_edit);
50885088
50895089 if (use_grouping) {
5090- String base_path = animation->track_get_path (i);
5090+ String base_path = String ( animation->track_get_path (i) );
50915091 base_path = base_path.get_slicec (' :' , 0 ); // Remove sub-path.
50925092
50935093 if (!group_sort.has (base_path)) {
@@ -5100,7 +5100,7 @@ void AnimationTrackEditor::_update_tracks() {
51005100 if (n) {
51015101 icon = EditorNode::get_singleton ()->get_object_icon (n, " Node" );
51025102 name = n->get_name ();
5103- tooltip = root->get_path_to (n);
5103+ tooltip = String ( root->get_path_to (n) );
51045104 }
51055105 }
51065106
@@ -6711,7 +6711,7 @@ void AnimationTrackEditor::_edit_menu_pressed(int p_option) {
67116711
67126712 path = NodePath (node->get_path ().get_names (), path.get_subnames (), true ); // Store full path instead for copying.
67136713 } else {
6714- text = path;
6714+ text = String ( path) ;
67156715 int sep = text.find_char (' :' );
67166716 if (sep != -1 ) {
67176717 text = text.substr (sep + 1 );
0 commit comments