Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/transform/transform_ops.c
| Show First 20 Lines • Show All 425 Lines • ▼ Show 20 Lines | |||||
| #endif | #endif | ||||
| /* XXX insert keys are called here, and require context */ | /* XXX insert keys are called here, and require context */ | ||||
| t->context = C; | t->context = C; | ||||
| exit_code = transformEvent(t, event); | exit_code = transformEvent(t, event); | ||||
| t->context = NULL; | t->context = NULL; | ||||
| /* XXX, workaround: active needs to be calculated before transforming, | /* XXX, workaround: active needs to be calculated before transforming, | ||||
| * since we're not reading from 'td->center' in this case. see: T40241 */ | * since we're not reading from 'td->center[tdi]' in this case. see: T40241 */ | ||||
| if (t->tsnap.target == SCE_SNAP_TARGET_ACTIVE) { | if (t->tsnap.target == SCE_SNAP_TARGET_ACTIVE) { | ||||
| /* In camera view, tsnap callback is not set | /* In camera view, tsnap callback is not set | ||||
| * (see initSnappingMode() in transfrom_snap.c, and T40348). */ | * (see initSnappingMode() in transfrom_snap.c, and T40348). */ | ||||
| if (t->tsnap.targetSnap && ((t->tsnap.status & TARGET_INIT) == 0)) { | if (t->tsnap.targetSnap && ((t->tsnap.status & TARGET_INIT) == 0)) { | ||||
| t->tsnap.targetSnap(t); | t->tsnap.targetSnap(t); | ||||
| } | } | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 904 Lines • Show Last 20 Lines | |||||