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
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user