Blender
V4.3
source
blender
animrig
intern
driver.cc
Go to the documentation of this file.
1
/* SPDX-FileCopyrightText: 2024 Blender Authors
2
*
3
* SPDX-License-Identifier: GPL-2.0-or-later */
4
9
#include "
ANIM_driver.hh
"
10
#include "
BKE_fcurve_driver.h
"
11
#include "
DNA_anim_types.h
"
12
#include "
RNA_access.hh
"
13
14
namespace
blender::animrig
{
15
16
float
evaluate_driver_from_rna_pointer
(
const
AnimationEvalContext
*anim_eval_context,
17
PointerRNA
*
ptr
,
18
PropertyRNA
*prop,
19
const
FCurve
*fcu)
20
{
21
PathResolvedRNA
anim_rna;
22
if
(!
RNA_path_resolved_create
(
ptr
, prop, fcu->
array_index
, &anim_rna)) {
23
return
0.0f;
24
}
25
return
evaluate_driver
(&anim_rna, fcu->
driver
, fcu->
driver
, anim_eval_context);
26
}
27
28
}
// namespace blender::animrig
ANIM_driver.hh
Functions to work with drivers.
BKE_fcurve_driver.h
evaluate_driver
float evaluate_driver(struct PathResolvedRNA *anim_rna, struct ChannelDriver *driver, struct ChannelDriver *driver_orig, const struct AnimationEvalContext *anim_eval_context)
DNA_anim_types.h
RNA_access.hh
blender::animrig
Definition
ANIM_action.hh:36
blender::animrig::evaluate_driver_from_rna_pointer
float evaluate_driver_from_rna_pointer(const AnimationEvalContext *anim_eval_context, PointerRNA *ptr, PropertyRNA *prop, const FCurve *fcu)
Definition
driver.cc:16
RNA_path_resolved_create
bool RNA_path_resolved_create(PointerRNA *ptr, PropertyRNA *prop, const int prop_index, PathResolvedRNA *r_anim_rna)
Definition
rna_access.cc:6733
AnimationEvalContext
Definition
BKE_animsys.h:38
FCurve
Definition
DNA_anim_types.h:591
FCurve::driver
ChannelDriver * driver
Definition
DNA_anim_types.h:600
FCurve::array_index
int array_index
Definition
DNA_anim_types.h:641
PathResolvedRNA
Definition
RNA_types.hh:55
PointerRNA
Definition
RNA_types.hh:39
PropertyRNA
Definition
rna_internal_types.hh:318
ptr
PointerRNA * ptr
Definition
wm_files.cc:4126
Generated on Thu Feb 6 2025 07:36:39 for Blender by
doxygen
1.11.0