Blender
V4.3
source
blender
blenkernel
intern
action_bones.cc
Go to the documentation of this file.
1
/* SPDX-FileCopyrightText: 2001-2002 NaN Holding BV. All rights reserved.
2
*
3
* SPDX-License-Identifier: GPL-2.0-or-later */
4
9
#include "
BKE_action.hh
"
10
11
#include "
BLI_listbase.h
"
12
#include "
BLI_string.h
"
13
14
#include "
DNA_action_types.h
"
15
#include "
DNA_anim_types.h
"
16
#include "
DNA_armature_types.h
"
17
18
#include "
MEM_guardedalloc.h
"
19
20
namespace
blender::bke
{
21
22
void
BKE_action_find_fcurves_with_bones
(
const
bAction
*action,
FoundFCurveCallback
callback
)
23
{
24
LISTBASE_FOREACH
(
FCurve
*, fcu, &action->
curves
) {
25
char
bone_name[
MAXBONENAME
];
26
if
(!
BLI_str_quoted_substr
(fcu->rna_path,
"pose.bones["
, bone_name,
sizeof
(bone_name))) {
27
continue
;
28
}
29
callback
(fcu, bone_name);
30
}
31
}
32
33
}
// namespace blender::bke
BKE_action.hh
Blender kernel action and pose functionality.
BLI_listbase.h
LISTBASE_FOREACH
#define LISTBASE_FOREACH(type, var, list)
Definition
BLI_listbase.h:372
BLI_string.h
BLI_str_quoted_substr
bool bool BLI_str_quoted_substr(const char *__restrict str, const char *__restrict prefix, char *result, size_t result_maxncpy)
Definition
string.c:517
DNA_action_types.h
DNA_anim_types.h
DNA_armature_types.h
MAXBONENAME
#define MAXBONENAME
Definition
DNA_armature_types.h:515
MEM_guardedalloc.h
Read Guarded memory(de)allocation.
blender::FunctionRef
Definition
BLI_function_ref.hh:74
callback
DEGForeachIDComponentCallback callback
Definition
depsgraph_query_foreach.cc:117
blender::bke
Definition
AS_asset_library.hh:26
blender::bke::BKE_action_find_fcurves_with_bones
void BKE_action_find_fcurves_with_bones(const bAction *action, FoundFCurveCallback callback)
Definition
action_bones.cc:22
FCurve
Definition
DNA_anim_types.h:591
bAction
Definition
DNA_action_types.h:766
bAction::curves
ListBase curves
Definition
DNA_action_types.h:799
Generated on Thu Feb 6 2025 07:36:39 for Blender by
doxygen
1.11.0