Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2018-03-02 17:50:28 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2018-03-02 17:51:44 +0300
commit411a781491954c226ae1f91a8b2735328d85258e (patch)
tree5db08b47e49af7c41e71ae33079f032d5fdae8a4 /source/blender/depsgraph
parent0fb55310b3829b3b12963ab8925fab63e735e192 (diff)
Depsgraph: Silence obviously noisy relations build errors
Those were happening for drivers which points to invalid drivers, and those drivers will have their own dedicated error prints.
Diffstat (limited to 'source/blender/depsgraph')
-rw-r--r--source/blender/depsgraph/intern/builder/deg_builder_relations.cc11
1 files changed, 10 insertions, 1 deletions
diff --git a/source/blender/depsgraph/intern/builder/deg_builder_relations.cc b/source/blender/depsgraph/intern/builder/deg_builder_relations.cc
index 0d85b1dfc93..914c8ef33db 100644
--- a/source/blender/depsgraph/intern/builder/deg_builder_relations.cc
+++ b/source/blender/depsgraph/intern/builder/deg_builder_relations.cc
@@ -1126,7 +1126,16 @@ void DepsgraphRelationBuilder::build_driver_data(ID *id, FCurve *fcu)
}
else {
RNAPathKey target_key(id, rna_path);
- add_relation(driver_key, target_key, "Driver -> Target");
+ if (RNA_pointer_is_null(&target_key.ptr)) {
+ /* TODO(sergey): This would only mean that driver is broken.
+ * so we can't create relation anyway. However, we need to avoid
+ * adding drivers which are known to be buggy to a dependency
+ * graph, in order to save computational power.
+ */
+ }
+ else {
+ add_relation(driver_key, target_key, "Driver -> Target");
+ }
}
}