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
path: root/source
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2018-01-09 15:09:59 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2018-01-09 15:09:59 +0300
commitd32878b425d16d72f2003b8dbe661f9cdd02165e (patch)
tree881df0b051253229bfcc3985b0661f40e7655f65 /source
parentce0fcf1378b6bdd01ff8fbcbccc31b00aa263e25 (diff)
Depsgraph: Perform early check on constraint info NULL
Diffstat (limited to 'source')
-rw-r--r--source/blender/blenkernel/intern/depsgraph.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/source/blender/blenkernel/intern/depsgraph.c b/source/blender/blenkernel/intern/depsgraph.c
index 3a528d4b847..fb7a43f0964 100644
--- a/source/blender/blenkernel/intern/depsgraph.c
+++ b/source/blender/blenkernel/intern/depsgraph.c
@@ -531,8 +531,12 @@ static void build_dag_object(DagForest *dag, DagNode *scenenode, Main *bmain, Sc
const bConstraintTypeInfo *cti = BKE_constraint_typeinfo_get(con);
ListBase targets = {NULL, NULL};
bConstraintTarget *ct;
-
- if (cti && cti->get_constraint_targets) {
+
+ if (!cti) {
+ continue;
+ }
+
+ if (cti->get_constraint_targets) {
cti->get_constraint_targets(con, &targets);
for (ct = targets.first; ct; ct = ct->next) {