Blender V5.3
deg_builder_relations_drivers.h
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2013 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
8
9#pragma once
10
11#include "BLI_string_ref.hh"
12
13#include "RNA_types.hh"
14
16
17namespace blender {
18
19struct FCurve;
20
21namespace deg {
22
23/* Helper class for determining which relations are needed between driver evaluation nodes. */
25 public:
40
41 DriverDescriptor(PointerRNA *id_ptr, FCurve *fcu);
42
43 bool driver_relations_needed() const;
44 bool is_array() const;
46 bool is_same_array_as(const DriverDescriptor &other) const;
48
49 private:
50 PointerRNA *id_ptr_;
51 FCurve *fcu_;
52 bool driver_relations_needed_;
53
54 PointerRNA pointer_rna_;
55 PropertyRNA *property_rna_;
56 bool is_array_;
57
58 bool determine_relations_needed();
59 void split_rna_path();
60 bool resolve_rna();
61};
62
73bool data_path_maybe_shared(const ID &id, StringRef data_path);
74
75} // namespace deg
76} // namespace blender
DriverDescriptor(PointerRNA *id_ptr, FCurve *fcu)
bool is_same_array_as(const DriverDescriptor &other) const
bool data_path_maybe_shared(const ID &id, const StringRef data_path)
BMesh Iterators.