Fix #115683: Crash with IK constraint #115788

Merged
Christoph Lendenfeld merged 1 commits from ChrisLend/blender:fix_ik_crash into main 2023-12-05 12:00:48 +01:00
1 changed files with 1 additions and 1 deletions

View File

@ -76,7 +76,7 @@ static void initialize_posetree(Object * /*ob*/, bPoseChannel *pchan_tip)
PoseTree *tree;
bKinematicConstraint *data = (bKinematicConstraint *)constraint->data;
/* exclude tip from chain? */
if (!(data->flag & CONSTRAINT_IK_TIP)) {
if (!(data->flag & CONSTRAINT_IK_TIP) && pchan_tip->parent != nullptr) {
pchan_tip = pchan_tip->parent;
}