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:
authorAlexander Gavrilov <angavrilov@gmail.com>2019-05-06 20:30:18 +0300
committerAlexander Gavrilov <angavrilov@gmail.com>2019-05-06 20:31:22 +0300
commit89724c03dc46d2cba52b4ed884f328161bd327aa (patch)
tree15b9e93a1dfba63898060ea5ab7e5202b5a1d433 /source/blender/depsgraph
parentc0432c2385e655563cc9cfeec6e97f531d0b1f24 (diff)
Fix T64111: add a NULL check to avoid crash with bad constraint subtarget.
Diffstat (limited to 'source/blender/depsgraph')
-rw-r--r--source/blender/depsgraph/intern/builder/deg_builder.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/depsgraph/intern/builder/deg_builder.cc b/source/blender/depsgraph/intern/builder/deg_builder.cc
index b8e0ba51019..71f482e8630 100644
--- a/source/blender/depsgraph/intern/builder/deg_builder.cc
+++ b/source/blender/depsgraph/intern/builder/deg_builder.cc
@@ -103,7 +103,7 @@ bool DepsgraphBuilder::need_pull_base_into_graph(Base *base)
bool DepsgraphBuilder::check_pchan_has_bbone(Object *object, const bPoseChannel *pchan)
{
BLI_assert(object->type == OB_ARMATURE);
- if (pchan->bone == NULL) {
+ if (pchan == NULL || pchan->bone == NULL) {
return false;
}
/* We don't really care whether segments are higher than 1 due to static user input (as in,