Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_image/image_ops.c
| Context not available. | |||||
| /* Grab will be set when running from gizmo. */ | /* Grab will be set when running from gizmo. */ | ||||
| vpd->own_cursor = (win->grabcursor == 0); | vpd->own_cursor = (win->grabcursor == 0); | ||||
| if (vpd->own_cursor) { | if (vpd->own_cursor) { | ||||
| WM_cursor_modal_set(win, WM_CURSOR_NSEW_SCROLL); | WM_cursor_modal_set(win, U.movement_cursor); | ||||
| } | } | ||||
| vpd->x = event->x; | vpd->x = event->x; | ||||
| Context not available. | |||||
| /* Grab will be set when running from gizmo. */ | /* Grab will be set when running from gizmo. */ | ||||
| vpd->own_cursor = (win->grabcursor == 0); | vpd->own_cursor = (win->grabcursor == 0); | ||||
| if (vpd->own_cursor) { | if (vpd->own_cursor) { | ||||
| WM_cursor_modal_set(win, WM_CURSOR_NSEW_SCROLL); | WM_cursor_modal_set(win, U.movement_cursor); | ||||
| } | } | ||||
| vpd->origx = event->x; | vpd->origx = event->x; | ||||
| Context not available. | |||||
| /* flags */ | /* flags */ | ||||
| ot->flag = 0; /* no undo/register since this operates on the space */ | ot->flag = 0; /* no undo/register since this operates on the space */ | ||||
| WM_operator_properties_gesture_straightline(ot, WM_CURSOR_EDIT); | WM_operator_properties_gesture_straightline(ot, U.precision_cursor); | ||||
| } | } | ||||
| /** \} */ | /** \} */ | ||||
| Context not available. | |||||