You've already forked godot
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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user