Commit: ad70d4b0956f5f06f45414cdfae2e2dc19505d71 Author: Joseph Brandenburg Date: Fri Sep 11 15:05:36 2020 +0200 Branches: master https://developer.blender.org/rBad70d4b0956f5f06f45414cdfae2e2dc19505d71
Constraints: Child-Of, set inverse matrix upon creation Set the inverse matrix when the Child Of constraint is created. This prevents the bone/object from jumping away when the constraint is added, improving usability. Reviewed by: sybren Differential Revision: https://developer.blender.org/D8851 =================================================================== M source/blender/blenkernel/intern/constraint.c =================================================================== diff --git a/source/blender/blenkernel/intern/constraint.c b/source/blender/blenkernel/intern/constraint.c index e7fe10cf19c..fc1b4d82c20 100644 --- a/source/blender/blenkernel/intern/constraint.c +++ b/source/blender/blenkernel/intern/constraint.c @@ -845,7 +845,8 @@ static void childof_new_data(void *cdata) bChildOfConstraint *data = (bChildOfConstraint *)cdata; data->flag = (CHILDOF_LOCX | CHILDOF_LOCY | CHILDOF_LOCZ | CHILDOF_ROTX | CHILDOF_ROTY | - CHILDOF_ROTZ | CHILDOF_SIZEX | CHILDOF_SIZEY | CHILDOF_SIZEZ); + CHILDOF_ROTZ | CHILDOF_SIZEX | CHILDOF_SIZEY | CHILDOF_SIZEZ | + CHILDOF_SET_INVERSE); unit_m4(data->invmat); } _______________________________________________ Bf-blender-cvs mailing list [email protected] https://lists.blender.org/mailman/listinfo/bf-blender-cvs
