Skip to content

Commit

Permalink
Merge pull request #51758 from ThreeRhinosInAnElephantCostume/fix51725
Browse files Browse the repository at this point in the history
Fixed node not renaming when clicking elsewhere on the scene tree
  • Loading branch information
akien-mga authored Aug 17, 2021
2 parents 1c737fe + fd9267f commit ca6c5cf
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions editor/scene_tree_editor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1206,11 +1206,10 @@ SceneTreeEditor::SceneTreeEditor(bool p_label, bool p_can_rename, bool p_can_ope
}

tree->connect("cell_selected", callable_mp(this, &SceneTreeEditor::_selected_changed));
tree->connect("item_edited", callable_mp(this, &SceneTreeEditor::_renamed), varray(), CONNECT_DEFERRED);
tree->connect("item_edited", callable_mp(this, &SceneTreeEditor::_renamed));
tree->connect("multi_selected", callable_mp(this, &SceneTreeEditor::_cell_multi_selected));
tree->connect("button_pressed", callable_mp(this, &SceneTreeEditor::_cell_button_pressed));
tree->connect("nothing_selected", callable_mp(this, &SceneTreeEditor::_deselect_items));
//tree->connect("item_edited", this,"_renamed",Vector<Variant>(),true);

error = memnew(AcceptDialog);
add_child(error);
Expand Down

0 comments on commit ca6c5cf

Please sign in to comment.