diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2018-01-09 15:09:59 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2018-01-09 15:09:59 +0300 |
commit | d32878b425d16d72f2003b8dbe661f9cdd02165e (patch) | |
tree | 881df0b051253229bfcc3985b0661f40e7655f65 /source/blender/blenkernel/intern/depsgraph.c | |
parent | ce0fcf1378b6bdd01ff8fbcbccc31b00aa263e25 (diff) |
Depsgraph: Perform early check on constraint info NULL
Diffstat (limited to 'source/blender/blenkernel/intern/depsgraph.c')
-rw-r--r-- | source/blender/blenkernel/intern/depsgraph.c | 8 |
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) { |