LEFT | RIGHT |
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 3575 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3586 break; | 3586 break; |
3587 case PROP_ANGLE: | 3587 case PROP_ANGLE: |
3588 r1 = r2 = tex_radius = WM_RADIAL_CONTROL_DISPLAY_SIZE; | 3588 r1 = r2 = tex_radius = WM_RADIAL_CONTROL_DISPLAY_SIZE; |
3589 alpha = 0.75; | 3589 alpha = 0.75; |
3590 break; | 3590 break; |
3591 default: | 3591 default: |
3592 tex_radius = WM_RADIAL_CONTROL_DISPLAY_SIZE; /* note, th
is is a dummy value */ | 3592 tex_radius = WM_RADIAL_CONTROL_DISPLAY_SIZE; /* note, th
is is a dummy value */ |
3593 alpha = 0.75; | 3593 alpha = 0.75; |
3594 break; | 3594 break; |
3595 } | 3595 } |
3596 | |
3597 /* adjust for DPI, like BKE_brush_size_get */ | |
3598 r1 *= U.pixelsize; | |
3599 r2 *= U.pixelsize; | |
3600 /* assign map to operators */ | 3596 /* assign map to operators */ |
3601 WM_modalkeymap_assign(keymap, "VIEW3D_OT_select_circle"); | 3597 WM_modalkeymap_assign(keymap, "VIEW3D_OT_select_circle"); |
3602 WM_modalkeymap_assign(keymap, "UV_OT_circle_select"); | 3598 WM_modalkeymap_assign(keymap, "UV_OT_circle_select"); |
3603 | 3599 |
3604 } | 3600 } |
3605 | 3601 |
LEFT | RIGHT |