~ubuntu-branches/ubuntu/trusty/blender/trusty-proposed

« back to all changes in this revision

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

  • Committer: Package Import Robot
  • Author(s): Matteo F. Vescovi
  • Date: 2013-08-14 10:43:49 UTC
  • mfrom: (14.2.19 sid)
  • Revision ID: package-import@ubuntu.com-20130814104349-t1d5mtwkphp12dyj
Tags: 2.68a-3
* Upload to unstable
* debian/: python3.3 Depends simplified
  - debian/control: python3.3 Depends dropped
    for blender-data package
  - 0001-blender_thumbnailer.patch refreshed
* debian/control: libavcodec b-dep versioning dropped

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
 * $Id$
3
 
 *
4
2
 * ***** BEGIN GPL LICENSE BLOCK *****
5
3
 *
6
4
 * This program is free software; you can redistribute it and/or
38
36
#include "DNA_meshdata_types.h"
39
37
#include "DNA_object_types.h"
40
38
 
 
39
#include "BLI_utildefines.h"
41
40
#include "BKE_pbvh.h"
42
41
#include "BKE_ccg.h"
43
42
#include "BKE_context.h"
55
54
#include "ED_screen.h"
56
55
#include "ED_sculpt.h"
57
56
 
 
57
#include "bmesh.h"
 
58
 
58
59
#include "paint_intern.h"
59
60
#include "sculpt_intern.h" /* for undo push */
60
61
 
127
128
void PAINT_OT_mask_flood_fill(struct wmOperatorType *ot)
128
129
{
129
130
        static EnumPropertyItem mode_items[] = {
130
 
                {PAINT_MASK_FLOOD_VALUE, "VALUE", 0, "Value", "Set mask to the level specified by the \"value\" property"},
 
131
                {PAINT_MASK_FLOOD_VALUE, "VALUE", 0, "Value", "Set mask to the level specified by the 'value' property"},
131
132
                {PAINT_MASK_INVERT, "INVERT", 0, "Invert", "Invert the mask"},
132
133
                {0}};
133
134
 
134
135
        /* identifiers */
135
136
        ot->name = "Mask Flood Fill";
136
137
        ot->idname = "PAINT_OT_mask_flood_fill";
 
138
        ot->description = "Fill the whole mask with a given value, or invert its values";
137
139
 
138
140
        /* api callbacks */
139
141
        ot->exec = mask_flood_fill_exec;
143
145
 
144
146
        /* rna */
145
147
        RNA_def_enum(ot->srna, "mode", mode_items, PAINT_MASK_FLOOD_VALUE, "Mode", NULL);
146
 
        RNA_def_float(ot->srna, "value", 0, 0, 1, "Value", "Mask level to use when mode is \"Value\"; zero means no masking and one is fully masked", 0, 1);
 
148
        RNA_def_float(ot->srna, "value", 0, 0, 1, "Value",
 
149
                      "Mask level to use when mode is 'Value'; zero means no masking and one is fully masked", 0, 1);
147
150
}