Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/uvedit/uvedit_unwrap_ops.c
| Context not available. | |||||
| } | } | ||||
| } | } | ||||
| break; | break; | ||||
| case MOUSEPAN: { | |||||
| const int invert = (U.uiflag2 & USER_TRACKPAD_NATURAL) ? 1 : -1; | |||||
| const int delta = invert * (event->y - event->prevy); | |||||
| float blend = ms->blend + (0.01f * delta); | |||||
| CLAMP(blend, 0.0f, 1.0f); | |||||
| if (blend != ms->blend) { | |||||
| ms->blend = blend; | |||||
| ms->lasttime = 0.0f; | |||||
| RNA_float_set(op->ptr, "blend", ms->blend); | |||||
| minimize_stretch_iteration(C, op, true); | |||||
| } | |||||
| break; | |||||
| } | |||||
| case TIMER: | case TIMER: | ||||
| if (ms->timer == event->customdata) { | if (ms->timer == event->customdata) { | ||||
| double start = PIL_check_seconds_timer(); | double start = PIL_check_seconds_timer(); | ||||
| Context not available. | |||||