[Bf-blender-cvs] [90e760270aa] master: Depsgraph: fix debug print crash on IK constraint without target.
Alexander Gavrilov
noreply at git.blender.org
Sun Apr 14 12:50:05 CEST 2019
Commit: 90e760270aac6a1e995d8bfd629f9da1851a65c9
Author: Alexander Gavrilov
Date: Sun Apr 14 11:31:51 2019 +0300
Branches: master
https://developer.blender.org/rB90e760270aac6a1e995d8bfd629f9da1851a65c9
Depsgraph: fix debug print crash on IK constraint without target.
===================================================================
M source/blender/depsgraph/intern/builder/deg_builder_relations_rig.cc
===================================================================
diff --git a/source/blender/depsgraph/intern/builder/deg_builder_relations_rig.cc b/source/blender/depsgraph/intern/builder/deg_builder_relations_rig.cc
index c9f86652262..ed1ae5631ad 100644
--- a/source/blender/depsgraph/intern/builder/deg_builder_relations_rig.cc
+++ b/source/blender/depsgraph/intern/builder/deg_builder_relations_rig.cc
@@ -172,7 +172,8 @@ void DepsgraphRelationBuilder::build_ik_pose(Object *object,
BUILD,
"\nStarting IK Build: pchan = %s, target = (%s, %s), "
"segcount = %d\n",
- pchan->name, data->tar->id.name, data->subtarget, data->rootbone);
+ pchan->name, data->tar ? data->tar->id.name : "NULL",
+ data->subtarget, data->rootbone);
bPoseChannel *parchan = pchan;
/* Exclude tip from chain if needed. */
if (!(data->flag & CONSTRAINT_IK_TIP)) {
More information about the Bf-blender-cvs
mailing list