Depsgraph: fix debug print crash on IK constraint without target.
This commit is contained in:
@@ -172,7 +172,8 @@ void DepsgraphRelationBuilder::build_ik_pose(Object *object,
|
|||||||
BUILD,
|
BUILD,
|
||||||
"\nStarting IK Build: pchan = %s, target = (%s, %s), "
|
"\nStarting IK Build: pchan = %s, target = (%s, %s), "
|
||||||
"segcount = %d\n",
|
"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;
|
bPoseChannel *parchan = pchan;
|
||||||
/* Exclude tip from chain if needed. */
|
/* Exclude tip from chain if needed. */
|
||||||
if (!(data->flag & CONSTRAINT_IK_TIP)) {
|
if (!(data->flag & CONSTRAINT_IK_TIP)) {
|
||||||
|
Reference in New Issue
Block a user