Partly apply patch [#23746] Clarify azone->edge values.
[blender-staging.git] / source / blender / editors / screen / screen_edit.c
index eb70eef988cf8e4fa78a25330303cc71449a87d6..05b6e072eacae24626a7e8afe06678206bd4fac8 100644 (file)
@@ -1162,7 +1162,7 @@ static void screen_cursor_set(wmWindow *win, wmEvent *event)
                if(az->type==AZONE_AREA)
                        WM_cursor_set(win, CURSOR_EDIT);
                else if(az->type==AZONE_REGION) {
-                       if(az->edge == 'l' || az->edge == 'r')
+                       if(az->edge == AE_LEFT_TO_TOPRIGHT || az->edge == AE_RIGHT_TO_TOPLEFT)
                                WM_cursor_set(win, CURSOR_X_MOVE);
                        else
                                WM_cursor_set(win, CURSOR_Y_MOVE);