25 auto const_callback = [&](
const FCurve *fcurve,
const char *bone_name) {
26 callback(
const_cast<FCurve *
>(fcurve), bone_name);
29 const_cast<const bAction *
>(action), slot_handle, const_callback);
39 fcu->rna_path().c_str(),
"pose.bones[", bone_name,
sizeof(bone_name)))
43 callback(fcu, bone_name);
Functions for backward compatibility with the legacy Action API.
Blender kernel action and pose functionality.
decltype(blender::ActionSlot::handle) slot_handle_t
Span< FCurve * > fcurves_for_action_slot(Action &action, slot_handle_t slot_handle)
void BKE_action_find_fcurves_with_bones(bAction *action, animrig::slot_handle_t slot_handle, FoundFCurveCallback callback)
FunctionRef< void(FCurve *fcurve, const char *bone_name)> FoundFCurveCallback
FunctionRef< void(const FCurve *fcurve, const char *bone_name)> FoundFCurveCallbackConst
bool bool BLI_str_quoted_substr(const char *__restrict str, const char *__restrict prefix, char *result, size_t result_maxncpy)