|
Blender V5.0
|
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 13 of file animrig/intern/nla.cc.
References NlaStrip::act, NlaStrip::action_slot_handle, assign_action_slot(), BLI_assert_msg, blender::animrig::generic_assign_action(), blender::animrig::Slot::is_suitable_for(), NlaStrip::last_slot_identifier, blender::animrig::OK, result, blender::animrig::Action::slot(), blender::animrig::Action::slots(), blender::animrig::Slot::unassigned, and UNUSED_VARS_NDEBUG.
Referenced by nlastrip_new(), 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 58 of file animrig/intern/nla.cc.
References NlaStrip::act, NlaStrip::action_slot_handle, BLI_assert, blender::animrig::generic_assign_action_slot(), and NlaStrip::last_slot_identifier.
Referenced by assign_action(), assign_action_slot_handle(), blender::animrig::nla::tests::TEST_F(), and blender::animrig::nla::tests::TEST_F().
| ActionSlotAssignmentResult blender::animrig::nla::assign_action_slot_handle | ( | NlaStrip & | strip, |
| slot_handle_t | slot_handle, | ||
| ID & | animated_id ) |
Definition at line 71 of file animrig/intern/nla.cc.
References NlaStrip::act, assign_action_slot(), BLI_assert, and blender::animrig::Action::slot_for_handle().
Referenced by blender::ed::transform::animrecord_check_state(), BKE_nla_tweakmode_exit(), and BKE_nlastrip_new_for_slot().
Definition at line 50 of file animrig/intern/nla.cc.
References NlaStrip::act, NlaStrip::action_slot_handle, BLI_assert_msg, blender::animrig::generic_assign_action(), NlaStrip::last_slot_identifier, and UNUSED_VARS_NDEBUG.
Referenced by blender::animrig::nla::tests::TEST_F(), and blender::animrig::nla::tests::TEST_F().