diff options
author | Julian Eisel <julian@blender.org> | 2021-07-20 22:18:10 +0300 |
---|---|---|
committer | Julian Eisel <julian@blender.org> | 2021-07-20 22:30:04 +0300 |
commit | 0af08cea40964b69a48a2be773aeb22304d2b46f (patch) | |
tree | 97770d957d9416ef0f215f9b55798270c372beb1 /source/blender/editors/asset | |
parent | e99801390c7a2b947fb447715409278d366f176a (diff) |
Cleanup: Use asset utility function to get the asset .blend path
For this to work, the utility function needs to be callable without
context, which is only needed for a File Browser specific hack anyway
(doesn't apply to this usage of it).
Diffstat (limited to 'source/blender/editors/asset')
-rw-r--r-- | source/blender/editors/asset/asset_list.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/asset/asset_list.cc b/source/blender/editors/asset/asset_list.cc index 3095239b711..e610a1dfbcd 100644 --- a/source/blender/editors/asset/asset_list.cc +++ b/source/blender/editors/asset/asset_list.cc @@ -500,7 +500,7 @@ std::string ED_assetlist_asset_filepath_get(const bContext *C, return {}; } const char *library_path = ED_assetlist_library_path(&library_reference); - if (!library_path) { + if (!library_path && C) { library_path = assetlist_library_path_from_sfile_get_hack(C); } if (!library_path) { |