|
Blender V4.3
|
Namespaces | |
| namespace | tests |
Functions | |
| bool | assign_action (NlaStrip &strip, Action &action, ID &animated_id) |
| void | unassign_action (NlaStrip &strip, ID &animated_id) |
| ActionSlotAssignmentResult | assign_action_slot (NlaStrip &strip, Slot *slot_to_assign, ID &animated_id) |
| ActionSlotAssignmentResult | assign_action_slot_handle (NlaStrip &strip, slot_handle_t slot_handle, ID &animated_id) |
Assign the Action to this NLA strip.
Similar to animrig::assign_action(), this tries to find a suitable slot.
Definition at line 19 of file animrig/intern/nla.cc.
References NlaStrip::act, NlaStrip::action_slot_name, assign_action_slot(), bAction::id, id_us_plus(), ID::name, blender::animrig::OK, blender::animrig::Action::slot_find_by_name(), and unassign_action().
Referenced by blender::animrig::nla::tests::TEST_F(), and blender::animrig::nla::tests::TEST_F().
| ActionSlotAssignmentResult blender::animrig::nla::assign_action_slot | ( | NlaStrip & | strip, |
| Slot * | slot_to_assign, | ||
| ID & | animated_id ) |
Assign a slot to the NLA strip.
The strip should already have an Action assigned to it, and the given Slot should belong to that Action.
| slot_to_assign | the slot to assign, or nullptr to un-assign the current slot. |
Definition at line 69 of file animrig/intern/nla.cc.
References NlaStrip::act, NlaStrip::action_slot_handle, NlaStrip::action_slot_name, BLI_assert, and blender::animrig::generic_assign_action_slot().
Referenced by assign_action(), assign_action_slot_handle(), blender::animrig::nla::tests::TEST_F(), blender::animrig::nla::tests::TEST_F(), and unassign_action().
| ActionSlotAssignmentResult blender::animrig::nla::assign_action_slot_handle | ( | NlaStrip & | strip, |
| slot_handle_t | slot_handle, | ||
| ID & | animated_id ) |
Definition at line 79 of file animrig/intern/nla.cc.
References NlaStrip::act, assign_action_slot(), BLI_assert, and blender::animrig::Action::slot_for_handle().
Referenced by animrecord_check_state(), BKE_nla_action_pushdown(), and BKE_nla_action_stash().
Definition at line 49 of file animrig/intern/nla.cc.
References NlaStrip::act, NlaStrip::action_slot_handle, assign_action_slot(), BLI_assert_msg, bAction::id, id_us_min(), and blender::animrig::Slot::unassigned.
Referenced by assign_action(), blender::animrig::nla::tests::TEST_F(), and blender::animrig::nla::tests::TEST_F().