Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/transform/transform_constraints.c
| Show First 20 Lines • Show All 677 Lines • ▼ Show 20 Lines | switch (orientation) { | ||||
| case V3D_MANIP_VIEW: | case V3D_MANIP_VIEW: | ||||
| BLI_snprintf(text, sizeof(text), ftext, IFACE_("view")); | BLI_snprintf(text, sizeof(text), ftext, IFACE_("view")); | ||||
| setConstraint(t, t->spacemtx, mode, text); | setConstraint(t, t->spacemtx, mode, text); | ||||
| break; | break; | ||||
| case V3D_MANIP_GIMBAL: | case V3D_MANIP_GIMBAL: | ||||
| BLI_snprintf(text, sizeof(text), ftext, IFACE_("gimbal")); | BLI_snprintf(text, sizeof(text), ftext, IFACE_("gimbal")); | ||||
| setConstraint(t, t->spacemtx, mode, text); | setConstraint(t, t->spacemtx, mode, text); | ||||
| break; | break; | ||||
| case V3D_MANIP_AXIAL: | |||||
| BLI_snprintf(text, sizeof(text), ftext, IFACE_("axial")); | |||||
| setConstraint(t, t->spacemtx, mode, text); | |||||
| break; | |||||
| default: /* V3D_MANIP_CUSTOM */ | default: /* V3D_MANIP_CUSTOM */ | ||||
| BLI_snprintf(text, sizeof(text), ftext, t->spacename); | BLI_snprintf(text, sizeof(text), ftext, t->spacename); | ||||
| setConstraint(t, t->spacemtx, mode, text); | setConstraint(t, t->spacemtx, mode, text); | ||||
| break; | break; | ||||
| } | } | ||||
| t->con.orientation = orientation; | t->con.orientation = orientation; | ||||
| ▲ Show 20 Lines • Show All 428 Lines • Show Last 20 Lines | |||||