Refactor: Clarify code around scheduling composite nodes
[blender.git] / source / blender / python / intern / bpy_rna_driver.hh
blob1039bd0b19c00d84a1d496ad02766788fae3475c
1 /* SPDX-FileCopyrightText: 2023 Blender Authors
3 * SPDX-License-Identifier: GPL-2.0-or-later */
5 #pragma once
7 /** \file
8 * \ingroup pythonintern
9 */
11 #include <Python.h>
13 struct AnimationEvalContext;
14 struct ChannelDriver;
15 struct DriverTarget;
16 struct DriverVar;
17 struct PathResolvedRNA;
19 /**
20 * A version of #driver_get_variable_value which returns a #PyObject.
22 PyObject *pyrna_driver_get_variable_value(const AnimationEvalContext *anim_eval_context,
23 ChannelDriver *driver,
24 DriverVar *dvar,
25 DriverTarget *dtar);
27 PyObject *pyrna_driver_self_from_anim_rna(PathResolvedRNA *anim_rna);
28 bool pyrna_driver_is_equal_anim_rna(const PathResolvedRNA *anim_rna, const PyObject *py_anim_rna);