mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Unfold tree items on hover while drag-n-dropping
Co-authored-by: suddjian
This commit is contained in:
parent
1f7630f1bf
commit
26745b4b87
11 changed files with 82 additions and 4 deletions
|
|
@ -1362,6 +1362,8 @@ void SceneTreeEditor::_notification(int p_what) {
|
|||
} break;
|
||||
|
||||
case NOTIFICATION_THEME_CHANGED: {
|
||||
// Wait for the node to be inspected before triggering the unfolding.
|
||||
tree->add_theme_constant_override("dragging_unfold_wait_msec", (float)EDITOR_GET("interface/editor/dragging_hover_wait_seconds") * 1000 * 2);
|
||||
tree->add_theme_constant_override("icon_max_width", get_theme_constant(SNAME("class_icon_size"), EditorStringName(Editor)));
|
||||
[[fallthrough]];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue