[Bf-blender-cvs] [89724c03dc4] master: Fix T64111: add a NULL check to avoid crash with bad constraint subtarget.
Alexander Gavrilov
noreply at git.blender.org
Mon May 6 19:31:34 CEST 2019
Commit: 89724c03dc46d2cba52b4ed884f328161bd327aa
Author: Alexander Gavrilov
Date: Mon May 6 20:30:18 2019 +0300
Branches: master
https://developer.blender.org/rB89724c03dc46d2cba52b4ed884f328161bd327aa
Fix T64111: add a NULL check to avoid crash with bad constraint subtarget.
===================================================================
M source/blender/depsgraph/intern/builder/deg_builder.cc
===================================================================
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,
More information about the Bf-blender-cvs
mailing list