Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/interface/view2d_ops.c
| Context not available. | |||||
| dy *= -1; | dy *= -1; | ||||
| } | } | ||||
| /* continuous zoom shouldn't move that fast... */ | /* Continuous zoom method, must be skipped for zooming with a trackpad, | ||||
| if (U.viewzoom == USER_ZOOM_CONT) { // XXX store this setting as RNA prop? | * it's not used for trackpads and the 'timer' is not initialized before. */ | ||||
| if ((U.viewzoom == USER_ZOOM_CONT) && vzd->timer) { // XXX store this setting as RNA prop? | |||||
| double time = PIL_check_seconds_timer(); | double time = PIL_check_seconds_timer(); | ||||
| float time_step = (float)(time - vzd->timer_lastdraw); | float time_step = (float)(time - vzd->timer_lastdraw); | ||||
| Context not available. | |||||