Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/transform/transform_constraints.c
| Context not available. | |||||
| axisProjection(t, c, in, out); | axisProjection(t, c, in, out); | ||||
| } | } | ||||
| postConstraintChecks(t, out, pvec); | postConstraintChecks(t, out, pvec); | ||||
| copy_v3_v3(out, pvec); | |||||
| if (t->flag & T_EDIT) { | |||||
| copy_v3_v3(out, pvec); | |||||
| } | |||||
| } | } | ||||
| else { | else { | ||||
| int i = 0; | if (t->flag & T_EDIT) { | ||||
| int i = 0; | |||||
| out[0] = out[1] = out[2] = 0.0f; | out[0] = out[1] = out[2] = 0.0f; | ||||
| if (t->con.mode & CON_AXIS0) { | if (t->con.mode & CON_AXIS0) { | ||||
| out[0] = in[i++]; | out[0] = in[i++]; | ||||
| } | } | ||||
| if (t->con.mode & CON_AXIS1) { | if (t->con.mode & CON_AXIS1) { | ||||
| out[1] = in[i++]; | out[1] = in[i++]; | ||||
| } | } | ||||
| if (t->con.mode & CON_AXIS2) { | if (t->con.mode & CON_AXIS2) { | ||||
| out[2] = in[i++]; | out[2] = in[i++]; | ||||
| } | |||||
| } | } | ||||
| mul_m3_v3(td->axismtx, out); | mul_m3_v3(td->axismtx, out); | ||||
| Context not available. | |||||