diff options
author | Sybren A. Stüvel <sybren@blender.org> | 2021-10-14 16:16:02 +0300 |
---|---|---|
committer | Sybren A. Stüvel <sybren@blender.org> | 2021-10-14 16:16:16 +0300 |
commit | 138aa209592ef3c2232007a9723659116d986d16 (patch) | |
tree | ec02b92e652f9a32edc48c7b6580ad555a7c81bb /source | |
parent | 240345842dd1594709433df1ff3448c55968254d (diff) |
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.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/editors/asset/intern/asset_library_reference_enum.cc | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/source/blender/editors/asset/intern/asset_library_reference_enum.cc b/source/blender/editors/asset/intern/asset_library_reference_enum.cc index c7c0f35c12d..b74fe40ec2e 100644 --- a/source/blender/editors/asset/intern/asset_library_reference_enum.cc +++ b/source/blender/editors/asset/intern/asset_library_reference_enum.cc @@ -55,7 +55,6 @@ int ED_asset_library_reference_to_enum_value(const AssetLibraryReference *librar return ASSET_LIBRARY_CUSTOM + library->custom_library_index; } - BLI_assert_unreachable(); return ASSET_LIBRARY_LOCAL; } |