[Bf-blender-cvs] [099ae99589b] master: Fix: Missed return in ASSET_OT_bundle_install item enumerator
Jesse Yurkovich
noreply at git.blender.org
Sat Sep 10 05:37:40 CEST 2022
Commit: 099ae99589bf21e03bbf380613438114953dd8ea
Author: Jesse Yurkovich
Date: Thu Sep 8 23:05:35 2022 -0700
Branches: master
https://developer.blender.org/rB099ae99589bf21e03bbf380613438114953dd8ea
Fix: Missed return in ASSET_OT_bundle_install item enumerator
Discovered from inspection.
Differential Revision: https://developer.blender.org/D15699
===================================================================
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 05d0b7d0af4..ba7b56db3ec 100644
--- a/source/blender/editors/asset/intern/asset_ops.cc
+++ b/source/blender/editors/asset/intern/asset_ops.cc
@@ -781,6 +781,7 @@ static const EnumPropertyItem *rna_asset_library_reference_itemf(bContext *UNUSE
const EnumPropertyItem *items = ED_asset_library_reference_to_rna_enum_itemf(false);
if (!items) {
*r_free = false;
+ return nullptr;
}
*r_free = true;
More information about the Bf-blender-cvs
mailing list