Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/transform/transform.c
| Show First 20 Lines • Show All 1,993 Lines • ▼ Show 20 Lines | static void drawTransformView(const struct bContext *C, ARegion *UNUSED(ar), void *arg) | ||||
| drawConstraint(t); | drawConstraint(t); | ||||
| drawPropCircle(C, t); | drawPropCircle(C, t); | ||||
| drawSnapping(C, t); | drawSnapping(C, t); | ||||
| /* edge slide, vert slide */ | /* edge slide, vert slide */ | ||||
| drawEdgeSlide(t); | drawEdgeSlide(t); | ||||
| drawVertSlide(t); | drawVertSlide(t); | ||||
| /* Rotation */ | |||||
| drawDial3d(t); | |||||
| } | } | ||||
| /* just draw a little warning message in the top-right corner of the viewport to warn that autokeying is enabled */ | /* just draw a little warning message in the top-right corner of the viewport to warn that autokeying is enabled */ | ||||
| static void drawAutoKeyWarning(TransInfo *UNUSED(t), ARegion *ar) | static void drawAutoKeyWarning(TransInfo *UNUSED(t), ARegion *ar) | ||||
| { | { | ||||
| rcti rect; | rcti rect; | ||||
| const char *printable = IFACE_("Auto Keying On"); | const char *printable = IFACE_("Auto Keying On"); | ||||
| float printable_size[2]; | float printable_size[2]; | ||||
| ▲ Show 20 Lines • Show All 1,085 Lines • ▼ Show 20 Lines | static void initBend(TransInfo *t) | ||||
| t->handleEvent = handleEventBend; | t->handleEvent = handleEventBend; | ||||
| setInputPostFct(&t->mouse, postInputRotation); | setInputPostFct(&t->mouse, postInputRotation); | ||||
| initMouseInputMode(t, &t->mouse, INPUT_ANGLE_SPRING); | initMouseInputMode(t, &t->mouse, INPUT_ANGLE_SPRING); | ||||
| t->idx_max = 1; | t->idx_max = 1; | ||||
| t->num.idx_max = 1; | t->num.idx_max = 1; | ||||
| t->snap[0] = 0.0f; | t->snap[0] = 0.0f; | ||||
| t->snap[1] = DEG2RAD(5.0); | t->snap[1] = INCREMENTAL_ANGLE; | ||||
| t->snap[2] = DEG2RAD(1.0); | t->snap[2] = t->snap[1] * 0.2; | ||||
| copy_v3_fl(t->num.val_inc, t->snap[1]); | copy_v3_fl(t->num.val_inc, t->snap[1]); | ||||
| t->num.unit_sys = t->scene->unit.system; | t->num.unit_sys = t->scene->unit.system; | ||||
| t->num.unit_use_radians = (t->scene->unit.system_rotation == USER_UNIT_ROT_RADIANS); | t->num.unit_use_radians = (t->scene->unit.system_rotation == USER_UNIT_ROT_RADIANS); | ||||
| t->num.unit_type[0] = B_UNIT_ROTATION; | t->num.unit_type[0] = B_UNIT_ROTATION; | ||||
| t->num.unit_type[1] = B_UNIT_LENGTH; | t->num.unit_type[1] = B_UNIT_LENGTH; | ||||
| t->flag |= T_NO_CONSTRAINT; | t->flag |= T_NO_CONSTRAINT; | ||||
| ▲ Show 20 Lines • Show All 6,053 Lines • Show Last 20 Lines | |||||