1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-09 12:50:35 +00:00

Clear drag preview nodes on NOTIFICATION_DRAG_END

This commit is contained in:
Robert Yevdokimov
2024-01-12 12:49:10 -05:00
parent 26b1fd0d84
commit 7a2c386e28
2 changed files with 6 additions and 0 deletions

View File

@@ -6027,6 +6027,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;
}
}