OLD | NEW |
1 /* | 1 /* |
2 * $Id$ | 2 * $Id$ |
3 * | 3 * |
4 * ***** BEGIN GPL LICENSE BLOCK ***** | 4 * ***** BEGIN GPL LICENSE BLOCK ***** |
5 * | 5 * |
6 * This program is free software; you can redistribute it and/or | 6 * This program is free software; you can redistribute it and/or |
7 * modify it under the terms of the GNU General Public License | 7 * modify it under the terms of the GNU General Public License |
8 * as published by the Free Software Foundation; either version 2 | 8 * as published by the Free Software Foundation; either version 2 |
9 * of the License, or (at your option) any later version. | 9 * of the License, or (at your option) any later version. |
10 * | 10 * |
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
259 int EM_mask_init_backbuf_border(ViewContext *vc, int mcords[][2], short tot, sho
rt xmin, short ymin, short xmax, short ymax) | 259 int EM_mask_init_backbuf_border(ViewContext *vc, int mcords[][2], short tot, sho
rt xmin, short ymin, short xmax, short ymax) |
260 { | 260 { |
261 unsigned int *dr, *drm; | 261 unsigned int *dr, *drm; |
262 struct ImBuf *buf, *bufmask; | 262 struct ImBuf *buf, *bufmask; |
263 int a; | 263 int a; |
264 GLboolean is_cull; | 264 GLboolean is_cull; |
265 ········ | 265 ········ |
266 /* method in use for face selecting too */ | 266 /* method in use for face selecting too */ |
267 if(vc->obedit==NULL) { | 267 if(vc->obedit==NULL) { |
268 if(paint_facesel_test(vc->obact)); | 268 if(paint_facesel_test(vc->obact)); |
| 269 else if(paint_vertsel_test(vc->obact));//Jason |
269 else return 0; | 270 else return 0; |
270 } | 271 } |
271 else if(vc->v3d->drawtype<OB_SOLID || (vc->v3d->flag & V3D_ZBUF_SELECT)=
=0) return 0; | 272 else if(vc->v3d->drawtype<OB_SOLID || (vc->v3d->flag & V3D_ZBUF_SELECT)=
=0) return 0; |
272 | 273 |
273 buf= view3d_read_backbuf(vc, xmin, ymin, xmax, ymax); | 274 buf= view3d_read_backbuf(vc, xmin, ymin, xmax, ymax); |
274 if(buf==NULL) return 0; | 275 if(buf==NULL) return 0; |
275 if(em_vertoffs==0) return 0; | 276 if(em_vertoffs==0) return 0; |
276 | 277 |
277 dr = buf->rect; | 278 dr = buf->rect; |
278 | 279 |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
321 int EM_init_backbuf_circle(ViewContext *vc, short xs, short ys, short rads) | 322 int EM_init_backbuf_circle(ViewContext *vc, short xs, short ys, short rads) |
322 { | 323 { |
323 struct ImBuf *buf; | 324 struct ImBuf *buf; |
324 unsigned int *dr; | 325 unsigned int *dr; |
325 short xmin, ymin, xmax, ymax, xc, yc; | 326 short xmin, ymin, xmax, ymax, xc, yc; |
326 int radsq; | 327 int radsq; |
327 ········ | 328 ········ |
328 /* method in use for face selecting too */ | 329 /* method in use for face selecting too */ |
329 if(vc->obedit==NULL) { | 330 if(vc->obedit==NULL) { |
330 if(paint_facesel_test(vc->obact)); | 331 if(paint_facesel_test(vc->obact)); |
| 332 else if (paint_vertsel_test(vc->obact));//Jason |
331 else return 0; | 333 else return 0; |
332 } | 334 } |
333 else if(vc->v3d->drawtype<OB_SOLID || (vc->v3d->flag & V3D_ZBUF_SELECT)=
=0) return 0; | 335 else if(vc->v3d->drawtype<OB_SOLID || (vc->v3d->flag & V3D_ZBUF_SELECT)=
=0) return 0; |
334 ········ | 336 ········ |
335 xmin= xs-rads; xmax= xs+rads; | 337 xmin= xs-rads; xmax= xs+rads; |
336 ymin= ys-rads; ymax= ys+rads; | 338 ymin= ys-rads; ymax= ys+rads; |
337 buf= view3d_read_backbuf(vc, xmin, ymin, xmax, ymax); | 339 buf= view3d_read_backbuf(vc, xmin, ymin, xmax, ymax); |
338 if(em_vertoffs==0) return 0; | 340 if(em_vertoffs==0) return 0; |
339 if(buf==NULL) return 0; | 341 if(buf==NULL) return 0; |
340 | 342 |
(...skipping 4150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4491 /* api callbacks */ | 4493 /* api callbacks */ |
4492 ot->exec= mesh_select_nth_exec; | 4494 ot->exec= mesh_select_nth_exec; |
4493 ot->poll= ED_operator_editmesh; | 4495 ot->poll= ED_operator_editmesh; |
4494 | 4496 |
4495 /* flags */ | 4497 /* flags */ |
4496 ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO; | 4498 ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO; |
4497 | 4499 |
4498 RNA_def_int(ot->srna, "nth", 2, 2, 100, "Nth Selection", "", 1, INT_MAX)
; | 4500 RNA_def_int(ot->srna, "nth", 2, 2, 100, "Nth Selection", "", 1, INT_MAX)
; |
4499 } | 4501 } |
4500 | 4502 |
OLD | NEW |