summaryrefslogtreecommitdiffstats
path: root/editor/editor_properties.cpp
diff options
context:
space:
mode:
authorEric M <itsjusteza@gmail.com>2020-08-09 18:34:04 +1000
committerEric M <itsjusteza@gmail.com>2020-08-25 19:58:42 +1000
commit7cc1b0f7eb4c762df5377e4e5141870fc41d1f95 (patch)
tree0a3ccdb449bd074ace95a3f6afa0049008d03fa0 /editor/editor_properties.cpp
parent443686d724ce8ac58dcdf09389e9f996aee866c1 (diff)
downloadredot-engine-7cc1b0f7eb4c762df5377e4e5141870fc41d1f95.tar.gz
Added ability to unfold editor sections when dragging and dropping.
Also added editor setting to control the delay used before unfold occurs.
Diffstat (limited to 'editor/editor_properties.cpp')
-rw-r--r--editor/editor_properties.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/editor/editor_properties.cpp b/editor/editor_properties.cpp
index 34d553b5f9..d5cc9ac5c1 100644
--- a/editor/editor_properties.cpp
+++ b/editor/editor_properties.cpp
@@ -2947,11 +2947,9 @@ void EditorPropertyResource::_notification(int p_what) {
}
if (p_what == NOTIFICATION_DRAG_BEGIN) {
- if (is_visible_in_tree()) {
- if (_is_drop_valid(get_viewport()->gui_get_drag_data())) {
- dropping = true;
- assign->update();
- }
+ if (_is_drop_valid(get_viewport()->gui_get_drag_data())) {
+ dropping = true;
+ assign->update();
}
}