Blender V5.0
ANIM_action_legacy.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2024 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
13#pragma once
14
15#include "BLI_vector.hh"
16
17#include "ANIM_action.hh"
18
20
21constexpr const char *DEFAULT_LEGACY_SLOT_NAME = "Legacy Slot";
22constexpr const char *DEFAULT_LEGACY_LAYER_NAME = "Legacy Layer";
23
30Slot &slot_ensure(Action &action);
31
39
47
62
70
85
96
107
117
127
135bool action_treat_as_legacy(const bAction &action);
136
149bool action_fcurves_remove(bAction &action,
150 slot_handle_t slot_handle,
151 StringRefNull rna_path_prefix);
152
153} // namespace blender::animrig::legacy
Functions and classes to work with Actions.
Slot & slot_ensure(Action &action)
Channelbag & channelbag_ensure(Action &action)
constexpr const char * DEFAULT_LEGACY_LAYER_NAME
Vector< FCurve * > fcurves_for_action_slot(bAction *action, slot_handle_t slot_handle)
Vector< bActionGroup * > channel_groups_for_assigned_slot(AnimData *adt)
Vector< const FCurve * > fcurves_all(const bAction *action)
Channelbag * channelbag_get(Action &action)
bool action_fcurves_remove(bAction &action, slot_handle_t slot_handle, StringRefNull rna_path_prefix)
Vector< FCurve * > fcurves_first_slot(bAction *action)
Vector< FCurve * > fcurves_for_assigned_action(AnimData *adt)
bool assigned_action_has_keyframes(AnimData *adt)
constexpr const char * DEFAULT_LEGACY_SLOT_NAME
Vector< bActionGroup * > channel_groups_all(bAction *action)
bool action_treat_as_legacy(const bAction &action)
decltype(::ActionSlot::handle) slot_handle_t