37#define DRIVER_TARGETS_LOOPER_BEGIN(dvar) \
39 auto *dtar = &(dvar)->targets[0]; \
41 for (; tarIndex < MAX_DRIVER_TARGETS; tarIndex++, dtar++)
44#define DRIVER_TARGETS_USED_LOOPER_BEGIN(dvar) \
46 auto *dtar = &(dvar)->targets[0]; \
48 for (; tarIndex < (dvar)->num_targets; tarIndex++, dtar++)
51#define DRIVER_TARGETS_LOOPER_END \
101 float mat[4][4],
int auto_order,
int rotation_mode,
int channel,
bool angles,
float r_buf[4]);
178 bool varname_changed);
These structs are the foundation for all linked lists in the library system.
void BKE_driver_invalidate_expression(struct ChannelDriver *driver, bool expr_changed, bool varname_changed)
float evaluate_driver(struct PathResolvedRNA *anim_rna, struct ChannelDriver *driver, struct ChannelDriver *driver_orig, const struct AnimationEvalContext *anim_eval_context)
void BKE_driver_target_matrix_to_rot_channels(float mat[4][4], int auto_order, int rotation_mode, int channel, bool angles, float r_buf[4])
struct ChannelDriver * fcurve_copy_driver(const struct ChannelDriver *driver)
void driver_free_variable_ex(struct ChannelDriver *driver, struct DriverVar *dvar)
eDriverVariablePropertyResult driver_get_variable_property(const struct AnimationEvalContext *anim_eval_context, struct ChannelDriver *driver, struct DriverVar *dvar, struct DriverTarget *dtar, struct PointerRNA *r_ptr, struct PropertyRNA **r_prop, int *r_index)
bool driver_get_target_property(const DriverTargetContext *driver_target_context, struct DriverVar *dvar, struct DriverTarget *dtar, struct PointerRNA *r_prop)
eDriverVariablePropertyResult
@ DRIVER_VAR_PROPERTY_SUCCESS
@ DRIVER_VAR_PROPERTY_FALLBACK
@ DRIVER_VAR_PROPERTY_INVALID_INDEX
@ DRIVER_VAR_PROPERTY_INVALID
void driver_variable_name_validate(struct DriverVar *dvar)
float driver_get_variable_value(const struct AnimationEvalContext *anim_eval_context, struct ChannelDriver *driver, struct DriverVar *dvar)
void driver_variable_unique_name(struct DriverVar *dvar)
bool BKE_driver_expression_depends_on_time(struct ChannelDriver *driver)
void fcurve_free_driver(struct FCurve *fcu)
bool BKE_driver_has_simple_expression(struct ChannelDriver *driver)
void driver_change_variable_type(struct DriverVar *dvar, eDriverVar_Types type)
void driver_variables_copy(ListBaseT< DriverVar > *dst_vars, const ListBaseT< DriverVar > *src_vars)
void driver_free_variable(ListBaseT< DriverVar > *variables, struct DriverVar *dvar)
struct DriverVar * driver_add_new_variable(struct ChannelDriver *driver)
struct ViewLayer * view_layer