diff options
author | kobewi <kobewi4e@gmail.com> | 2021-03-22 16:35:49 +0100 |
---|---|---|
committer | kobewi <kobewi4e@gmail.com> | 2021-03-22 16:35:49 +0100 |
commit | 4e64c9fd4dac5478e97b461897ec559ceeb580ef (patch) | |
tree | b8fe6f3b353c3c899597923ca2c97db8841d4c5f | |
parent | 07f076fa4f2896415993bb8e3fb42128423de0d2 (diff) |
Allow to drop files on filtered scene tree
-rw-r--r-- | editor/scene_tree_editor.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/editor/scene_tree_editor.cpp b/editor/scene_tree_editor.cpp index e9de91f851..b5e9aec854 100644 --- a/editor/scene_tree_editor.cpp +++ b/editor/scene_tree_editor.cpp @@ -994,9 +994,6 @@ bool SceneTreeEditor::can_drop_data_fw(const Point2 &p_point, const Variant &p_d if (!can_rename) { return false; //not editable tree } - if (filter != String()) { - return false; //can't rearrange tree with filter turned on - } Dictionary d = p_data; if (!d.has("type")) { @@ -1049,7 +1046,7 @@ bool SceneTreeEditor::can_drop_data_fw(const Point2 &p_point, const Variant &p_d } } - return String(d["type"]) == "nodes"; + return String(d["type"]) == "nodes" && filter == String(); } void SceneTreeEditor::drop_data_fw(const Point2 &p_point, const Variant &p_data, Control *p_from) { |