Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/transform/transform_generics.c
| Show First 20 Lines • Show All 675 Lines • ▼ Show 20 Lines | #if 0 | ||||
| } | } | ||||
| #endif | #endif | ||||
| /* Disable cursor wrap when edge panning is enabled. */ | /* Disable cursor wrap when edge panning is enabled. */ | ||||
| if (t->options & CTX_VIEW2D_EDGE_PAN) { | if (t->options & CTX_VIEW2D_EDGE_PAN) { | ||||
| t->flag |= T_NO_CURSOR_WRAP; | t->flag |= T_NO_CURSOR_WRAP; | ||||
| } | } | ||||
| if (op && (t->flag & T_MODAL) && !(t->flag & T_RELEASE_CONFIRM)) { | |||||
| /* These mode does not display mouse cursor. | |||||
| * This is problematic for navigation. */ | |||||
| if (!ELEM(t->mode, TFM_DUMMY, TFM_TOSPHERE, TFM_SHRINKFATTEN)) { | |||||
| t->vod = ED_view3d_navigation_init(C); | |||||
| } | |||||
| } | |||||
| setTransformViewMatrices(t); | setTransformViewMatrices(t); | ||||
| calculateCenter2D(t); | |||||
| calculateCenterLocal(t, t->center_global); | |||||
| initNumInput(&t->num); | initNumInput(&t->num); | ||||
| } | } | ||||
| static void freeTransCustomData(TransInfo *t, TransDataContainer *tc, TransCustomData *custom_data) | static void freeTransCustomData(TransInfo *t, TransDataContainer *tc, TransCustomData *custom_data) | ||||
| { | { | ||||
| if (custom_data->free_cb) { | if (custom_data->free_cb) { | ||||
| /* Can take over freeing t->data and data_2d etc... */ | /* Can take over freeing t->data and data_2d etc... */ | ||||
| custom_data->free_cb(t, tc, custom_data); | custom_data->free_cb(t, tc, custom_data); | ||||
| ▲ Show 20 Lines • Show All 90 Lines • ▼ Show 20 Lines | if (t->mouse.data) { | ||||
| MEM_freeN(t->mouse.data); | MEM_freeN(t->mouse.data); | ||||
| } | } | ||||
| if (t->rng != NULL) { | if (t->rng != NULL) { | ||||
| BLI_rng_free(t->rng); | BLI_rng_free(t->rng); | ||||
| } | } | ||||
| freeSnapping(t); | freeSnapping(t); | ||||
| if (t->vod) { | |||||
| ED_view3d_navigation_free(C, t->vod); | |||||
| } | |||||
| } | } | ||||
| void applyTransObjects(TransInfo *t) | void applyTransObjects(TransInfo *t) | ||||
| { | { | ||||
| TransDataContainer *tc = TRANS_DATA_CONTAINER_FIRST_SINGLE(t); | TransDataContainer *tc = TRANS_DATA_CONTAINER_FIRST_SINGLE(t); | ||||
| TransData *td; | TransData *td; | ||||
| ▲ Show 20 Lines • Show All 680 Lines • Show Last 20 Lines | |||||