Fix unused variable in release builds

Assert is not needed in this case.
This commit is contained in:
2023-02-16 18:56:03 +01:00
parent 4cdf27cd96
commit 77c273ee37

View File

@@ -148,9 +148,6 @@ static void file_but_enable_drag(uiBut *but,
(file->typeflag & FILE_TYPE_ASSET) != 0) {
char blend_path[FILE_MAX_LIBEXTRA];
if (BLO_library_path_explode(path, blend_path, NULL, NULL)) {
const FileAssetSelectParams *asset_params = ED_fileselect_get_asset_params(sfile);
BLI_assert(asset_params != NULL);
const int import_method = ED_fileselect_asset_import_method_get(sfile, file);
BLI_assert(import_method > -1);