Blender Git Loki

Git Commits -> Revision 22a0e96

Revision 22a0e96 by Alexander Gavrilov
October 21, 2021, 16:27 (GMT)
Context: add accessors returning selected actions for animation editors.

Add a new 'selected_visible_actions' property to allow querying
actions that are selected in animation related editors for use in
UI and operators. The 'selected_editable_actions' variant excludes
linked actions (the only reason an action can be read-only).

In the Action and Shape Key editors there is only one action
that is specified by the field at the top of the editor.

In Dope Sheet it scans the channel rows and returns all actions
related to the selected items. This includes summary items for
actions and groups.

In Graph Editor, it lists actions associated with selected curves.

The new property is also used for Copy To Selected and Alt-Click.

Ref D11803

Commit Details:

Full Hash: 22a0e962d8ba9fc2d3604209184970376b3f6d82
Parent Commit: deb7ec3
Lines Changed: +114, -0

5 Modified Paths:

/doc/python_api/sphinx_doc_gen.py (+2, -0) (Diff)
/source/blender/editors/animation/anim_channels_defines.c (+18, -0) (Diff)
/source/blender/editors/include/ED_anim_api.h (+3, -0) (Diff)
/source/blender/editors/interface/interface_ops.c (+3, -0) (Diff)
/source/blender/editors/screen/screen_context.c (+88, -0) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021