OLD | NEW |
1 /* | 1 /* |
2 * ***** BEGIN GPL LICENSE BLOCK ***** | 2 * ***** BEGIN GPL LICENSE BLOCK ***** |
3 * | 3 * |
4 * This program is free software; you can redistribute it and/or | 4 * This program is free software; you can redistribute it and/or |
5 * modify it under the terms of the GNU General Public License | 5 * modify it under the terms of the GNU General Public License |
6 * as published by the Free Software Foundation; either version 2 | 6 * as published by the Free Software Foundation; either version 2 |
7 * of the License, or (at your option) any later version.· | 7 * of the License, or (at your option) any later version.· |
8 * | 8 * |
9 * This program is distributed in the hope that it will be useful, | 9 * This program is distributed in the hope that it will be useful, |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
(...skipping 875 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
886 } | 886 } |
887 ED_region_tag_redraw(ar); | 887 ED_region_tag_redraw(ar); |
888 break; | 888 break; |
889 } | 889 } |
890 | 890 |
891 break; | 891 break; |
892 case NC_GPENCIL: | 892 case NC_GPENCIL: |
893 if (wmn->action == NA_EDITED) | 893 if (wmn->action == NA_EDITED) |
894 ED_region_tag_redraw(ar); | 894 ED_region_tag_redraw(ar); |
895 break; | 895 break; |
| 896 case NC_LOD: |
| 897 /* all lod ops for now */ |
| 898 ED_region_tag_redraw(ar); |
| 899 break; |
896 } | 900 } |
897 } | 901 } |
898 | 902 |
899 /* concept is to retrieve cursor type context-less */ | 903 /* concept is to retrieve cursor type context-less */ |
900 static void view3d_main_area_cursor(wmWindow *win, ScrArea *UNUSED(sa), ARegion
*UNUSED(ar)) | 904 static void view3d_main_area_cursor(wmWindow *win, ScrArea *UNUSED(sa), ARegion
*UNUSED(ar)) |
901 { | 905 { |
902 Scene *scene = win->screen->scene; | 906 Scene *scene = win->screen->scene; |
903 | 907 |
904 if (scene->obedit) { | 908 if (scene->obedit) { |
905 WM_cursor_set(win, CURSOR_EDIT); | 909 WM_cursor_set(win, CURSOR_EDIT); |
(...skipping 436 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1342 art->prefsizey = HEADERY; | 1346 art->prefsizey = HEADERY; |
1343 art->keymapflag = ED_KEYMAP_UI | ED_KEYMAP_VIEW2D | ED_KEYMAP_FRAMES | E
D_KEYMAP_HEADER; | 1347 art->keymapflag = ED_KEYMAP_UI | ED_KEYMAP_VIEW2D | ED_KEYMAP_FRAMES | E
D_KEYMAP_HEADER; |
1344 art->listener = view3d_header_area_listener; | 1348 art->listener = view3d_header_area_listener; |
1345 art->init = view3d_header_area_init; | 1349 art->init = view3d_header_area_init; |
1346 art->draw = view3d_header_area_draw; | 1350 art->draw = view3d_header_area_draw; |
1347 BLI_addhead(&st->regiontypes, art); | 1351 BLI_addhead(&st->regiontypes, art); |
1348 ········ | 1352 ········ |
1349 BKE_spacetype_register(st); | 1353 BKE_spacetype_register(st); |
1350 } | 1354 } |
1351 | 1355 |
OLD | NEW |