[Bf-blender-cvs] [8f2db94627d] blender-v3.0-release: Fix T93357: crash when opening search menu
Jacques Lucke
noreply at git.blender.org
Thu Nov 25 00:04:03 CET 2021
Commit: 8f2db94627d50df0d8c40b3b8f17db3e429bbb8d
Author: Jacques Lucke
Date: Thu Nov 25 00:03:41 2021 +0100
Branches: blender-v3.0-release
https://developer.blender.org/rB8f2db94627d50df0d8c40b3b8f17db3e429bbb8d
Fix T93357: crash when opening search menu
This is the same fix as in rBde35a90f9f56d3ff3ac80c13bf1ae296853ba877
but for the blender-v3.0-release branch.
===================================================================
M source/blender/editors/asset/intern/asset_ops.cc
===================================================================
diff --git a/source/blender/editors/asset/intern/asset_ops.cc b/source/blender/editors/asset/intern/asset_ops.cc
index 1f5d3f5c101..9d03f6030b5 100644
--- a/source/blender/editors/asset/intern/asset_ops.cc
+++ b/source/blender/editors/asset/intern/asset_ops.cc
@@ -693,6 +693,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;
}
More information about the Bf-blender-cvs
mailing list