1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-13 13:31:48 +00:00

Small fixes to redundand code, copy paste bugs

This commit is contained in:
qarmin
2019-10-14 11:40:55 +02:00
parent 1fed266bf5
commit 616ab4fac2
13 changed files with 16 additions and 18 deletions

View File

@@ -1109,6 +1109,8 @@ void ProjectSettingsEditor::drop_data_fw(const Point2 &p_point, const Variant &p
TreeItem *selected = input_editor->get_selected();
TreeItem *item = input_editor->get_item_at_position(p_point);
if (!item)
return;
TreeItem *target = item->get_parent() == input_editor->get_root() ? item : item->get_parent();
String selected_name = "input/" + selected->get_text(0);