From 61e92eeb3e38f6dc887b63102b6a9acc9cce7e26 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Thu, 2 Dec 2021 14:33:47 +0100 Subject: Fix `Action.asset_data["is_single_frame"]` set incorrectly The asset metadata custom property `["is_single_frame"]` was set incorrectly. Since this is intended for forward compatibility, including being covered by the asset metadata indexing, it's important to have it set correctly from the first release of Blender that includes the asset browser. Differential Revision: https://developer.blender.org/D13452 --- source/blender/blenkernel/intern/action.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/blenkernel/intern/action.c') diff --git a/source/blender/blenkernel/intern/action.c b/source/blender/blenkernel/intern/action.c index 842902b51ed..34c4eaece05 100644 --- a/source/blender/blenkernel/intern/action.c +++ b/source/blender/blenkernel/intern/action.c @@ -289,7 +289,7 @@ static void action_blend_read_expand(BlendExpander *expander, ID *id) static IDProperty *action_asset_type_property(const bAction *action) { - const bool is_single_frame = !BKE_action_has_single_frame(action); + const bool is_single_frame = BKE_action_has_single_frame(action); IDPropertyTemplate idprop = {0}; idprop.i = is_single_frame; -- cgit v1.2.3