Fix crash when opening search menu.
Asset install bundle poll didn't check the space it was running in and assumed that it was always running in file browser.
This commit is contained in:
parent
ebe5a5eca8
commit
de35a90f9f
Notes:
blender-bot
2023-02-14 11:24:03 +01:00
Referenced by commit 8f2db94627
, Fix T93357: crash when opening search menu
Referenced by issue #93357, Crash at attempting to open Search menu
Referenced by issue #93339, Crash with Menu Search and Developer Extras
|
@ -688,6 +688,9 @@ static bool asset_bundle_install_poll(bContext *C)
|
|||
{
|
||||
/* This operator only works when the asset browser is set to Current File. */
|
||||
const SpaceFile *sfile = CTX_wm_space_file(C);
|
||||
if (sfile == nullptr) {
|
||||
return false;
|
||||
}
|
||||
if (!ED_fileselect_is_local_asset_library(sfile)) {
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue