Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/uvedit/uvedit_unwrap_ops.c
| Show First 20 Lines • Show All 92 Lines • ▼ Show 20 Lines | |||||
| if (ms->blend > 0.05f) { | if (ms->blend > 0.05f) { | ||||
| ms->blend -= 0.1f; | ms->blend -= 0.1f; | ||||
| ms->lasttime = 0.0f; | ms->lasttime = 0.0f; | ||||
| RNA_float_set(op->ptr, "blend", ms->blend); | RNA_float_set(op->ptr, "blend", ms->blend); | ||||
| minimize_stretch_iteration(C, op, true); | minimize_stretch_iteration(C, op, true); | ||||
| } | } | ||||
| } | } | ||||
| break; | break; | ||||
| case MOUSEPAN: { | |||||
| float blend = ms->blend + (0.01f * WM_event_absolute_delta_y(event)); | |||||
| 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(); | ||||
| do { | do { | ||||
| minimize_stretch_iteration(C, op, true); | minimize_stretch_iteration(C, op, true); | ||||
| } while (PIL_check_seconds_timer() - start < 0.01); | } while (PIL_check_seconds_timer() - start < 0.01); | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 92 Lines • Show Last 20 Lines | |||||