34 driver_relations_needed_(
false),
39 driver_relations_needed_ = determine_relations_needed();
43bool DriverDescriptor::determine_relations_needed()
69 return driver_relations_needed_;
79 if (!is_array_ || !other.is_array_) {
90 fcu_->rna_path().c_str(),
94void DriverDescriptor::split_rna_path()
97 const char *last_dot = strrchr(
rna_path.c_str(),
'.');
98 if (last_dot ==
nullptr || last_dot[1] ==
'\0') {
108bool DriverDescriptor::resolve_rna()
111 id_ptr_, fcu_->rna_path().c_str(), &pointer_rna_, &property_rna_);
122 std::deque<const Node *> queue;
125 while (!queue.empty()) {
127 const Node *visit = queue.back();
136 const Node *prev_node = relation->
from;
137 if (seen.
add(prev_node)) {
138 queue.push_back(prev_node);
168 if (adt ==
nullptr) {
178 if (fcu.rna_path().is_empty()) {
193 int num_drivers = prefix_group.size();
194 if (num_drivers < 2) {
198 for (
int from_index = 0; from_index < num_drivers; ++from_index) {
203 for (
int to_offset = 1; to_offset < num_drivers; ++to_offset) {
204 const int to_index = (from_index + to_offset) % num_drivers;
212 if (op_from == op_to) {
259 return !is_thread_safe;
265 const bool is_thread_safe = data_path.
startswith(
"key_blocks[") &&
267 return !is_thread_safe;
ValueIterator values() const &
Value & lookup_or_add_default_as(ForwardKey &&key)
constexpr bool startswith(StringRef prefix) const
constexpr bool endswith(StringRef suffix) const
TimeSourceNode * get_node(const TimeSourceKey &key) const
Relation * add_operation_relation(OperationNode *node_from, OperationNode *node_to, const char *description, int flags=0)
virtual void build_driver_relations()
bool driver_relations_needed() const
OperationKey depsgraph_key() const
DriverDescriptor(PointerRNA *id_ptr, FCurve *fcu)
bool is_same_array_as(const DriverDescriptor &other) const
static bool is_reachable(const Node *const from, const Node *const to)
bool data_path_maybe_shared(const ID &id, const StringRef data_path)
PointerRNA RNA_id_pointer_create(ID *id)
bool RNA_property_array_check(PropertyRNA *prop)
PropertyType RNA_property_type(PropertyRNA *prop)
AnimData * BKE_animdata_from_id(const ID *id)
ID_Type GS(const char *name)
bool RNA_path_resolve_property(const PointerRNA *ptr, const char *path, PointerRNA *r_ptr, PropertyRNA **r_prop)
ListBaseT< FCurve > drivers
virtual OperationNode * get_entry_operation()
virtual OperationNode * get_exit_operation()