Cleanup: asset browser, remove invalid assertion
Remove `BLI_assert_unreachable()` in a spot that is actually easily reachable. To reach, follow these steps: - Configure three asset libraries (say A, B, and C) in preferences - Set the asset browser to library C and save the file - Remove asset library C from the preferences - Reopen the file.
This commit is contained in:
parent
240345842d
commit
138aa20959
@ -55,7 +55,6 @@ int ED_asset_library_reference_to_enum_value(const AssetLibraryReference *librar
|
|||||||
return ASSET_LIBRARY_CUSTOM + library->custom_library_index;
|
return ASSET_LIBRARY_CUSTOM + library->custom_library_index;
|
||||||
}
|
}
|
||||||
|
|
||||||
BLI_assert_unreachable();
|
|
||||||
return ASSET_LIBRARY_LOCAL;
|
return ASSET_LIBRARY_LOCAL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user