Blender Git Commit Log

Git Commits -> Revision b4cfe80

Revision b4cfe80 by Sybren A. Stüvel (master)
November 12, 2021, 13:36 (GMT)
Assets: Store Action sub-type in asset metadata

Blender 3.0 will only support single-frame Actions in the pose library.
The goal of this patch is to lay the groundwork for making it possible
for the Asset Browser to reject/hide "animation snippet" Action assets.

Determining whether an Action has one or more frames (i.e. whether it
has a single pose or animation) requires inspecting the Action itself,
and thus loading the data-block itself. This would make it impossible to
quickly determine from the asset browser.

To solve this, the Action is inspected before saving, and a
`"is_single_frame"` boolean (well, 0/1 integer) IDProperty is added.

Reviewed by: Severin

Differential Revision: https://developer.blender.org/D13202

Commit Details:

Full Hash: b4cfe80547244e69017bb9c8432a4b18c21b5a6b
Parent Commit: 5f7d5c0
Lines Changed: +173, -0

3 Modified Paths:

/source/blender/blenkernel/BKE_action.h (+10, -0) (Diff)
/source/blender/blenkernel/intern/action.c (+68, -0) (Diff)
/source/blender/blenkernel/intern/action_test.cc (+95, -0) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021