mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Merge pull request #87125 from ryevdokimov/fix-removing-preview-nodes-on-ui-cancel
Clear drag preview nodes on `NOTIFICATION_DRAG_END`
This commit is contained in:
commit
e096be85c4
2 changed files with 6 additions and 0 deletions
|
|
@ -6030,6 +6030,10 @@ void CanvasItemEditorViewport::_notification(int p_what) {
|
|||
case NOTIFICATION_EXIT_TREE: {
|
||||
disconnect("mouse_exited", callable_mp(this, &CanvasItemEditorViewport::_on_mouse_exit));
|
||||
} break;
|
||||
|
||||
case NOTIFICATION_DRAG_END: {
|
||||
_remove_preview();
|
||||
} break;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue