Small fixes to redundand code, copy paste bugs
This commit is contained in:
parent
1fed266bf5
commit
616ab4fac2
13 changed files with 16 additions and 18 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue