Blender
V5.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
8
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
DNA_anim_types.h
RNA_access.hh
blender::animrig
Definition
ANIM_action.hh:39
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
blender::evaluate_driver
float evaluate_driver(struct PathResolvedRNA *anim_rna, struct ChannelDriver *driver, struct ChannelDriver *driver_orig, const struct AnimationEvalContext *anim_eval_context)
blender::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:8203
blender::AnimationEvalContext
Definition
BKE_animsys.hh:50
blender::FCurve
Definition
DNA_anim_types.h:353
blender::FCurve::array_index
int array_index
Definition
DNA_anim_types.h:402
blender::FCurve::driver
ChannelDriver * driver
Definition
DNA_anim_types.h:362
blender::PathResolvedRNA
Definition
RNA_types.hh:200
blender::PointerRNA
Definition
RNA_types.hh:52
blender::PropertyRNA
Definition
rna_internal_types.hh:398
Generated on
for Blender by
doxygen
1.18.0