Blender
V3.3
source
blender
blenkernel
intern
action_bones.cc
Go to the documentation of this file.
1
/* SPDX-License-Identifier: GPL-2.0-or-later
2
* Copyright 2001-2002 NaN Holding BV. All rights reserved. */
3
8
#include "
BKE_action.hh
"
9
10
#include "
BLI_listbase.h
"
11
#include "
BLI_string.h
"
12
13
#include "
DNA_action_types.h
"
14
#include "
DNA_anim_types.h
"
15
#include "
DNA_armature_types.h
"
16
17
#include "
MEM_guardedalloc.h
"
18
19
namespace
blender::bke
{
20
21
void
BKE_action_find_fcurves_with_bones
(
const
bAction
*action,
FoundFCurveCallback
callback
)
22
{
23
LISTBASE_FOREACH
(
FCurve
*, fcu, &action->
curves
) {
24
char
bone_name[
MAXBONENAME
];
25
if
(!
BLI_str_quoted_substr
(fcu->rna_path,
"pose.bones["
, bone_name,
sizeof
(bone_name))) {
26
continue
;
27
}
28
callback
(fcu, bone_name);
29
}
30
}
31
32
}
// namespace blender::bke
BKE_action.hh
BLI_listbase.h
LISTBASE_FOREACH
#define LISTBASE_FOREACH(type, var, list)
Definition:
BLI_listbase.h:336
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_maxlen)
Definition:
string.c:424
DNA_action_types.h
DNA_anim_types.h
DNA_armature_types.h
MAXBONENAME
#define MAXBONENAME
Definition:
DNA_armature_types.h:312
MEM_guardedalloc.h
Read Guarded memory(de)allocation.
blender::FunctionRef
Definition:
BLI_function_ref.hh:73
callback
DEGForeachIDComponentCallback callback
Definition:
depsgraph_query_foreach.cc:115
blender::bke
Definition:
BKE_action.hh:16
blender::bke::BKE_action_find_fcurves_with_bones
void BKE_action_find_fcurves_with_bones(const bAction *action, FoundFCurveCallback callback)
Definition:
action_bones.cc:21
FCurve
Definition:
DNA_anim_types.h:565
bAction
Definition:
DNA_action_types.h:655
bAction::curves
ListBase curves
Definition:
DNA_action_types.h:660
Generated on Tue Oct 22 2024 13:18:25 for Blender by
doxygen
1.9.1