Fix #32964: IK constraint had a "Target" option, which actually is an internal
[blender.git] / source / blender / blenloader / intern / readfile.c
index 135f23eb9aa4e9bebeb3265d1888efe425667726..9dc75adcc6a6ee75552bb71b6d4810e93d52ff33 100644 (file)
@@ -2543,8 +2543,13 @@ static void direct_link_constraints(FileData *fd, ListBase *lb)
                                break;
                        case CONSTRAINT_TYPE_KINEMATIC:
                        {
+                               bKinematicConstraint *data = con->data;
+
                                con->lin_error = 0.f;
                                con->rot_error = 0.f;
+
+                               /* version patch for runtime flag, was not cleared in some case */
+                               data->flag &= ~CONSTRAINT_IK_AUTO;
                        }
                        case CONSTRAINT_TYPE_CHILDOF:
                        {