Add Chromium-only Blender WebEngine parity work
This commit is contained in:
28
blender-5.2.0/source/blender/animrig/ANIM_driver.hh
Normal file
28
blender-5.2.0/source/blender/animrig/ANIM_driver.hh
Normal file
@@ -0,0 +1,28 @@
|
||||
/* SPDX-FileCopyrightText: 2024 Blender Authors
|
||||
*
|
||||
* SPDX-License-Identifier: GPL-2.0-or-later */
|
||||
|
||||
/** \file
|
||||
* \ingroup animrig
|
||||
*
|
||||
* \brief Functions to work with drivers.
|
||||
*/
|
||||
|
||||
#include "RNA_types.hh"
|
||||
|
||||
namespace blender {
|
||||
|
||||
struct AnimationEvalContext;
|
||||
struct FCurve;
|
||||
|
||||
namespace animrig {
|
||||
|
||||
/** Evaluates the driver on the frame given in `anim_eval_context` and returns the value. Returns 0
|
||||
* if the RNA path can't be resolved. */
|
||||
float evaluate_driver_from_rna_pointer(const AnimationEvalContext *anim_eval_context,
|
||||
PointerRNA *ptr,
|
||||
PropertyRNA *prop,
|
||||
const FCurve *fcu);
|
||||
|
||||
} // namespace animrig
|
||||
} // namespace blender
|
||||
Reference in New Issue
Block a user