Cleanup: Use assert instead of early exit for asset dragging internals

Instead of failing silently, throw a failed assert in debug builds.
This commit is contained in:
Julian Eisel 2022-06-27 15:32:56 +02:00
parent 36f5967b99
commit 83c2cbb880

@ -712,9 +712,7 @@ void WM_drag_add_asset_list_item(
const AssetLibraryReference *asset_library_ref,
const AssetHandle *asset)
{
if (drag->type != WM_DRAG_ASSET_LIST) {
return;
}
BLI_assert(drag->type == WM_DRAG_ASSET_LIST);
/* No guarantee that the same asset isn't added twice. */