|
Blender V5.3
|
Namespaces | |
| namespace | tests |
Assign the Action to this NLA strip.
Similar to animrig::assign_action(), this tries to find a suitable slot.
Definition at line 25 of file animrig/intern/nla.cc.
References blender::NlaStrip::act, blender::NlaStrip::action_slot_handle, assign_action(), assign_action_slot(), BLI_assert_msg, blender::animrig::generic_assign_action(), blender::animrig::Slot::is_suitable_for(), blender::NlaStrip::last_slot_identifier, blender::animrig::OK, blender::result, blender::animrig::Action::slot(), blender::animrig::Action::slots(), blender::animrig::Slot::unassigned, and UNUSED_VARS_NDEBUG.
Referenced by assign_action(), blender::nlastrip_new(), blender::animrig::tests::KeyframingTest::SetUp(), 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 70 of file animrig/intern/nla.cc.
References blender::NlaStrip::act, blender::NlaStrip::action_slot_handle, assign_action_slot(), blender::BLI_assert(), blender::animrig::generic_assign_action_slot(), and blender::NlaStrip::last_slot_identifier.
Referenced by assign_action(), assign_action_slot(), 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 83 of file animrig/intern/nla.cc.
References blender::NlaStrip::act, assign_action_slot(), assign_action_slot_handle(), blender::BLI_assert(), and blender::animrig::Action::slot_for_handle().
Referenced by blender::ed::transform::animrecord_check_state(), assign_action_slot_handle(), blender::BKE_nla_tweakmode_exit(), and blender::BKE_nlastrip_new_for_slot().
|
static |
Definition at line 96 of file animrig/intern/nla.cc.
References blender::BKE_reportf(), blender::BLI_dynstr_appendf(), blender::BLI_dynstr_free(), blender::BLI_dynstr_get_cstring(), blender::BLI_dynstr_new(), ELEM, get_keyframe_values_create_reports(), blender::ID::name, blender::PointerRNA::owner_id, blender::RNA_property_ui_name(), and blender::RPT_WARNING.
Referenced by get_keyframe_values_create_reports(), and nla_map_keyframe_values_and_generate_reports().
| bool blender::animrig::nla::insert_keyframe_direct | ( | ReportList * | reports, |
| PointerRNA | ptr, | ||
| PropertyRNA * | prop, | ||
| FCurve * | fcu, | ||
| const AnimationEvalContext * | anim_eval_context, | ||
| eBezTriple_KeyframeType | keytype, | ||
| NlaKeyframingContext * | nla_context, | ||
| eInsertKeyFlags | flag ) |
Keyframing function taking the NLA into account.
Inserts a key into the given FCurve with the current value of the PropertyRNA remapped through the NLA stack.
With the removal of the NLA any calls to this can be redirected to animrig::insert_keyframe_direct.
Definition at line 163 of file animrig/intern/nla.cc.
References blender::FCurve::array_index, blender::Vector< T, InlineBufferCapacity, Allocator >::as_mutable_span(), blender::BKE_fcurve_is_keyframable(), blender::BKE_report(), blender::BKE_reportf(), blender::AnimationEvalContext::eval_time, blender::animrig::get_keyframe_settings(), blender::animrig::get_property_values(), insert_keyframe_direct(), blender::animrig::insert_vert_fcurve(), blender::INSERTKEY_MATRIX, blender::INSERTKEY_NO_USERPREF, blender::animrig::KeyframeSettings::keyframe_type, blender::ID::name, nla_map_keyframe_values_and_generate_reports(), blender::PointerRNA::owner_id, blender::result, blender::RNA_path_resolve_property(), blender::RNA_property_type(), RPT_, blender::RPT_ERROR, blender::Vector< T, InlineBufferCapacity, Allocator >::size(), blender::animrig::SUCCESS, and blender::animrig::update_autoflags_fcurve_direct().
Referenced by blender::achannel_setting_slider_cb(), and insert_keyframe_direct().
|
static |
Definition at line 145 of file animrig/intern/nla.cc.
References blender::BKE_animsys_nla_remap_keyframe_values(), get_keyframe_values_create_reports(), nla_map_keyframe_values_and_generate_reports(), and blender::MutableSpan< T >::size().
Referenced by insert_keyframe_direct(), and nla_map_keyframe_values_and_generate_reports().
Definition at line 62 of file animrig/intern/nla.cc.
References blender::NlaStrip::act, blender::NlaStrip::action_slot_handle, BLI_assert_msg, blender::animrig::generic_assign_action(), blender::NlaStrip::last_slot_identifier, unassign_action(), and UNUSED_VARS_NDEBUG.
Referenced by blender::animrig::nla::tests::TEST_F(), blender::animrig::nla::tests::TEST_F(), and unassign_action().