diff options
author | Michael Alexsander Silva Dias <michaelalexsander@protonmail.com> | 2019-09-27 22:12:35 -0300 |
---|---|---|
committer | Michael Alexsander Silva Dias <michaelalexsander@protonmail.com> | 2019-09-27 22:12:35 -0300 |
commit | 4e9df13a40da874d96949f4c274cf8121e33e909 (patch) | |
tree | 646a4f1b978ecd2c6dd604c94328964def6b5942 /editor | |
parent | 7a67ae01a47cc08fbd66f3c4e780118fbc07ef91 (diff) |
Fix crash when moving an action into itself in the Input Map editor
Diffstat (limited to 'editor')
-rw-r--r-- | editor/project_settings_editor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/project_settings_editor.cpp b/editor/project_settings_editor.cpp index d42f15cce8..a56cfede34 100644 --- a/editor/project_settings_editor.cpp +++ b/editor/project_settings_editor.cpp @@ -1078,7 +1078,7 @@ bool ProjectSettingsEditor::can_drop_data_fw(const Point2 &p_point, const Varian TreeItem *selected = input_editor->get_selected(); TreeItem *item = input_editor->get_item_at_position(p_point); - if (!selected || !item || item->get_parent() == selected) + if (!selected || !item || item == selected || item->get_parent() == selected) return false; return true; |