~siretart/ubuntu/utopic/blender/libav10

« back to all changes in this revision

Viewing changes to source/blender/editors/sculpt_paint/paint_utils.c

  • Committer: Package Import Robot
  • Author(s): Matthias Klose
  • Date: 2014-02-19 11:24:23 UTC
  • mfrom: (14.2.23 sid)
  • Revision ID: package-import@ubuntu.com-20140219112423-rkmaz2m7ha06d4tk
Tags: 2.69-3ubuntu1
* Merge with Debian; remaining changes:
  - Configure without OpenImageIO on armhf, as it is not available on
    Ubuntu.

Show diffs side-by-side

added added

removed removed

Lines of Context:
333
333
        /* sample only on the exact position */
334
334
        *index = view3d_sample_backbuf(vc, mval[0], mval[1]);
335
335
 
336
 
        if ((*index) <= 0 || (*index) > (unsigned int)totface) {
 
336
        if ((*index) == 0 || (*index) > (unsigned int)totface) {
337
337
                return 0;
338
338
        }
339
339
 
412
412
/* face-select ops */
413
413
static int paint_select_linked_exec(bContext *C, wmOperator *UNUSED(op))
414
414
{
415
 
        paintface_select_linked(C, CTX_data_active_object(C), NULL, 2);
 
415
        paintface_select_linked(C, CTX_data_active_object(C), NULL, true);
416
416
        ED_region_tag_redraw(CTX_wm_region(C));
417
417
        return OPERATOR_FINISHED;
418
418
}
441
441
void PAINT_OT_face_select_linked_pick(wmOperatorType *ot)
442
442
{
443
443
        ot->name = "Select Linked Pick";
444
 
        ot->description = "Select linked faces";
 
444
        ot->description = "Select linked faces under the cursor";
445
445
        ot->idname = "PAINT_OT_face_select_linked_pick";
446
446
 
447
447
        ot->invoke = paint_select_linked_pick_invoke;