Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/transform/transform_mode.c
| Show First 20 Lines • Show All 523 Lines • ▼ Show 20 Lines | if (t->flag & T_PROP_EDIT_ALL) { | ||||
| ofs += BLI_snprintf( | ofs += BLI_snprintf( | ||||
| str + ofs, UI_MAX_DRAW_STR - ofs, TIP_(" Proportional size: %.2f"), t->prop_size); | str + ofs, UI_MAX_DRAW_STR - ofs, TIP_(" Proportional size: %.2f"), t->prop_size); | ||||
| } | } | ||||
| } | } | ||||
| void postInputRotation(TransInfo *t, float values[3]) | void postInputRotation(TransInfo *t, float values[3]) | ||||
| { | { | ||||
| float axis_final[3]; | float axis_final[3]; | ||||
| copy_v3_v3(axis_final, t->orient_matrix[t->orient_axis]); | copy_v3_v3(axis_final, t->spacemtx[t->orient_axis]); | ||||
| if ((t->con.mode & CON_APPLY) && t->con.applyRot) { | if ((t->con.mode & CON_APPLY) && t->con.applyRot) { | ||||
| t->con.applyRot(t, NULL, NULL, axis_final, values); | t->con.applyRot(t, NULL, NULL, axis_final, values); | ||||
| } | } | ||||
| } | } | ||||
| /** | /** | ||||
| * Applies values of rotation to `td->loc` and `td->ext->quat` | * Applies values of rotation to `td->loc` and `td->ext->quat` | ||||
| * based on a rotation matrix (mat) and a pivot (center). | * based on a rotation matrix (mat) and a pivot (center). | ||||
| ▲ Show 20 Lines • Show All 724 Lines • Show Last 20 Lines | |||||