Blender  V3.3
Macros | Functions | Variables
rna_brush.c File Reference
#include <stdlib.h>
#include "DNA_brush_types.h"
#include "DNA_gpencil_types.h"
#include "DNA_material_types.h"
#include "DNA_object_types.h"
#include "DNA_scene_types.h"
#include "DNA_texture_types.h"
#include "DNA_workspace_types.h"
#include "BLI_math.h"
#include "RNA_define.h"
#include "RNA_enum_types.h"
#include "rna_internal.h"
#include "IMB_imbuf.h"
#include "WM_types.h"

Go to the source code of this file.

Macros

#define TEXTURE_CAPABILITY(prop_name_, ui_name_)
 
#define SCULPT_TOOL_CAPABILITY(prop_name_, ui_name_)
 
#define BRUSH_CAPABILITY(prop_name_, ui_name_)
 
#define IMAPAINT_TOOL_CAPABILITY(prop_name_, ui_name_)
 
#define VPAINT_TOOL_CAPABILITY(prop_name_, ui_name_)
 
#define WPAINT_TOOL_CAPABILITY(prop_name_, ui_name_)
 

Functions

static void rna_def_brush_texture_slot (BlenderRNA *brna)
 
static void rna_def_sculpt_capabilities (BlenderRNA *brna)
 
static void rna_def_brush_capabilities (BlenderRNA *brna)
 
static void rna_def_image_paint_capabilities (BlenderRNA *brna)
 
static void rna_def_vertex_paint_capabilities (BlenderRNA *brna)
 
static void rna_def_weight_paint_capabilities (BlenderRNA *brna)
 
static void rna_def_gpencil_options (BlenderRNA *brna)
 
static void rna_def_curves_sculpt_options (BlenderRNA *brna)
 
static void rna_def_brush (BlenderRNA *brna)
 
static void rna_def_operator_stroke_element (BlenderRNA *brna)
 
void RNA_def_brush (BlenderRNA *brna)
 

Variables

static const EnumPropertyItem prop_direction_items []
 
static const EnumPropertyItem sculpt_stroke_method_items []
 
static const EnumPropertyItem rna_enum_brush_texture_slot_map_all_mode_items []
 
const EnumPropertyItem rna_enum_brush_sculpt_tool_items []
 
const EnumPropertyItem rna_enum_brush_uv_sculpt_tool_items []
 
const EnumPropertyItem rna_enum_brush_vertex_tool_items []
 
const EnumPropertyItem rna_enum_brush_weight_tool_items []
 
const EnumPropertyItem rna_enum_brush_image_tool_items []
 
const EnumPropertyItem rna_enum_brush_gpencil_types_items []
 
const EnumPropertyItem rna_enum_brush_gpencil_vertex_types_items []
 
const EnumPropertyItem rna_enum_brush_gpencil_sculpt_types_items []
 
const EnumPropertyItem rna_enum_brush_gpencil_weight_types_items []
 
const EnumPropertyItem rna_enum_brush_curves_sculpt_tool_items []
 
static EnumPropertyItem rna_enum_gpencil_brush_eraser_modes_items []
 
static EnumPropertyItem rna_enum_gpencil_fill_draw_modes_items []
 
static EnumPropertyItem rna_enum_gpencil_fill_layers_modes_items []
 
static EnumPropertyItem rna_enum_gpencil_fill_direction_items []
 
static EnumPropertyItem rna_enum_gpencil_brush_modes_items []
 
static EnumPropertyItem rna_enum_gpencil_brush_paint_icons_items []
 
static EnumPropertyItem rna_enum_gpencil_brush_sculpt_icons_items []
 
static EnumPropertyItem rna_enum_gpencil_brush_weight_icons_items []
 
static EnumPropertyItem rna_enum_gpencil_brush_vertex_icons_items []
 

Macro Definition Documentation

◆ BRUSH_CAPABILITY

#define BRUSH_CAPABILITY (   prop_name_,
  ui_name_ 
)
Value:
prop = RNA_def_property(srna, #prop_name_, PROP_BOOLEAN, PROP_NONE); \
RNA_def_property_clear_flag(prop, PROP_EDITABLE); \
RNA_def_property_boolean_funcs(prop, "rna_BrushCapabilities_" #prop_name_ "_get", NULL); \
RNA_def_property_ui_text(prop, ui_name_, NULL)
@ PROP_BOOLEAN
Definition: RNA_types.h:59
@ PROP_EDITABLE
Definition: RNA_types.h:189
@ PROP_NONE
Definition: RNA_types.h:126
PropertyRNA * RNA_def_property(StructOrFunctionRNA *cont_, const char *identifier, int type, int subtype)
Definition: rna_define.c:1257

◆ IMAPAINT_TOOL_CAPABILITY

#define IMAPAINT_TOOL_CAPABILITY (   prop_name_,
  ui_name_ 
)
Value:
prop = RNA_def_property(srna, #prop_name_, PROP_BOOLEAN, PROP_NONE); \
RNA_def_property_clear_flag(prop, PROP_EDITABLE); \
RNA_def_property_boolean_funcs( \
prop, "rna_BrushCapabilitiesImagePaint_" #prop_name_ "_get", NULL); \
RNA_def_property_ui_text(prop, ui_name_, NULL)

◆ SCULPT_TOOL_CAPABILITY

#define SCULPT_TOOL_CAPABILITY (   prop_name_,
  ui_name_ 
)
Value:
prop = RNA_def_property(srna, #prop_name_, PROP_BOOLEAN, PROP_NONE); \
RNA_def_property_clear_flag(prop, PROP_EDITABLE); \
RNA_def_property_boolean_funcs( \
prop, "rna_BrushCapabilitiesSculpt_" #prop_name_ "_get", NULL); \
RNA_def_property_ui_text(prop, ui_name_, NULL)

◆ TEXTURE_CAPABILITY

#define TEXTURE_CAPABILITY (   prop_name_,
  ui_name_ 
)
Value:
prop = RNA_def_property(srna, #prop_name_, PROP_BOOLEAN, PROP_NONE); \
RNA_def_property_clear_flag(prop, PROP_EDITABLE); \
RNA_def_property_boolean_funcs(prop, "rna_TextureCapabilities_" #prop_name_ "_get", NULL); \
RNA_def_property_ui_text(prop, ui_name_, NULL)

◆ VPAINT_TOOL_CAPABILITY

#define VPAINT_TOOL_CAPABILITY (   prop_name_,
  ui_name_ 
)
Value:
prop = RNA_def_property(srna, #prop_name_, PROP_BOOLEAN, PROP_NONE); \
RNA_def_property_clear_flag(prop, PROP_EDITABLE); \
RNA_def_property_boolean_funcs( \
prop, "rna_BrushCapabilitiesVertexPaint_" #prop_name_ "_get", NULL); \
RNA_def_property_ui_text(prop, ui_name_, NULL)

◆ WPAINT_TOOL_CAPABILITY

#define WPAINT_TOOL_CAPABILITY (   prop_name_,
  ui_name_ 
)
Value:
prop = RNA_def_property(srna, #prop_name_, PROP_BOOLEAN, PROP_NONE); \
RNA_def_property_clear_flag(prop, PROP_EDITABLE); \
RNA_def_property_boolean_funcs( \
prop, "rna_BrushCapabilitiesWeightPaint_" #prop_name_ "_get", NULL); \
RNA_def_property_ui_text(prop, ui_name_, NULL)

Function Documentation

◆ rna_def_brush()

static void rna_def_brush ( BlenderRNA brna)
static

Begin per-mode tool properties.

keep in sync with BKE_paint_get_tool_prop_id_from_paintmode

End per mode tool properties.

Definition at line 2044 of file rna_brush.c.

References BRUSH_ABSOLUTE_JITTER, BRUSH_ACCUMULATE, BRUSH_ADAPTIVE_SPACE, BRUSH_AIRBRUSH, BRUSH_ALPHA_PRESSURE, BRUSH_ANCHORED, BRUSH_AREA_RADIUS_PRESSURE, BRUSH_AUTOMASKING_BOUNDARY_EDGES, BRUSH_AUTOMASKING_BOUNDARY_FACE_SETS, BRUSH_AUTOMASKING_FACE_SETS, BRUSH_AUTOMASKING_TOPOLOGY, BRUSH_BOUNDARY_DEFORM_BEND, BRUSH_BOUNDARY_DEFORM_EXPAND, BRUSH_BOUNDARY_DEFORM_GRAB, BRUSH_BOUNDARY_DEFORM_INFLATE, BRUSH_BOUNDARY_DEFORM_SMOOTH, BRUSH_BOUNDARY_DEFORM_TWIST, BRUSH_BOUNDARY_FALLOFF_CONSTANT, BRUSH_BOUNDARY_FALLOFF_LOOP, BRUSH_BOUNDARY_FALLOFF_LOOP_INVERT, BRUSH_BOUNDARY_FALLOFF_RADIUS, BRUSH_CLOTH_DEFORM_DRAG, BRUSH_CLOTH_DEFORM_EXPAND, BRUSH_CLOTH_DEFORM_GRAB, BRUSH_CLOTH_DEFORM_INFLATE, BRUSH_CLOTH_DEFORM_PINCH_PERPENDICULAR, BRUSH_CLOTH_DEFORM_PINCH_POINT, BRUSH_CLOTH_DEFORM_PUSH, BRUSH_CLOTH_DEFORM_SNAKE_HOOK, BRUSH_CLOTH_FORCE_FALLOFF_PLANE, BRUSH_CLOTH_FORCE_FALLOFF_RADIAL, BRUSH_CLOTH_PIN_SIMULATION_BOUNDARY, BRUSH_CLOTH_SIMULATION_AREA_DYNAMIC, BRUSH_CLOTH_SIMULATION_AREA_GLOBAL, BRUSH_CLOTH_SIMULATION_AREA_LOCAL, BRUSH_CLOTH_USE_COLLISION, BRUSH_CURVE, BRUSH_CURVE_CONSTANT, BRUSH_CURVE_CUSTOM, BRUSH_CURVE_INVSQUARE, BRUSH_CURVE_LIN, BRUSH_CURVE_POW4, BRUSH_CURVE_ROOT, BRUSH_CURVE_SHARP, BRUSH_CURVE_SMOOTH, BRUSH_CURVE_SMOOTHER, BRUSH_CURVE_SPHERE, BRUSH_CUSTOM_ICON, BRUSH_DEFORM_TARGET_CLOTH_SIM, BRUSH_DEFORM_TARGET_GEOMETRY, BRUSH_DRAG_DOT, BRUSH_EDGE_TO_EDGE, BRUSH_ELASTIC_DEFORM_GRAB, BRUSH_ELASTIC_DEFORM_GRAB_BISCALE, BRUSH_ELASTIC_DEFORM_GRAB_TRISCALE, BRUSH_ELASTIC_DEFORM_SCALE, BRUSH_ELASTIC_DEFORM_TWIST, BRUSH_FRONTFACE, BRUSH_FRONTFACE_FALLOFF, BRUSH_GRAB_ACTIVE_VERTEX, BRUSH_GRAB_SILHOUETTE, BRUSH_GRADIENT_LINEAR, BRUSH_GRADIENT_PRESSURE, BRUSH_GRADIENT_RADIAL, BRUSH_GRADIENT_SPACING_CLAMP, BRUSH_GRADIENT_SPACING_REPEAT, BRUSH_INVERSE_SMOOTH_PRESSURE, BRUSH_INVERT_TO_SCRAPE_FILL, BRUSH_JITTER_PRESSURE, BRUSH_LINE, BRUSH_LOCK_ALPHA, BRUSH_LOCK_SIZE, BRUSH_MASK_DRAW, BRUSH_MASK_PRESSURE_CUTOFF, BRUSH_MASK_PRESSURE_RAMP, BRUSH_MASK_SMOOTH, BRUSH_MULTIPLANE_SCRAPE_DYNAMIC, BRUSH_MULTIPLANE_SCRAPE_PLANES_PREVIEW, BRUSH_OFFSET_PRESSURE, BRUSH_ORIGINAL_NORMAL, BRUSH_ORIGINAL_PLANE, BRUSH_OVERLAY_CURSOR, BRUSH_OVERLAY_CURSOR_OVERRIDE_ON_STROKE, BRUSH_OVERLAY_PRIMARY, BRUSH_OVERLAY_PRIMARY_OVERRIDE_ON_STROKE, BRUSH_OVERLAY_SECONDARY, BRUSH_OVERLAY_SECONDARY_OVERRIDE_ON_STROKE, BRUSH_PAINT_ANTIALIASING, BRUSH_PAINT_DENSITY_PRESSURE, BRUSH_PAINT_DENSITY_PRESSURE_INVERT, BRUSH_PAINT_FLOW_PRESSURE, BRUSH_PAINT_FLOW_PRESSURE_INVERT, BRUSH_PAINT_HARDNESS_PRESSURE, BRUSH_PAINT_HARDNESS_PRESSURE_INVERT, BRUSH_PAINT_WET_MIX_PRESSURE, BRUSH_PAINT_WET_MIX_PRESSURE_INVERT, BRUSH_PAINT_WET_PERSISTENCE_PRESSURE, BRUSH_PAINT_WET_PERSISTENCE_PRESSURE_INVERT, BRUSH_PERSISTENT, BRUSH_PLANE_TRIM, BRUSH_POSE_DEFORM_ROTATE_TWIST, BRUSH_POSE_DEFORM_SCALE_TRASLATE, BRUSH_POSE_DEFORM_SQUASH_STRETCH, BRUSH_POSE_IK_ANCHORED, BRUSH_POSE_ORIGIN_FACE_SETS, BRUSH_POSE_ORIGIN_FACE_SETS_FK, BRUSH_POSE_ORIGIN_TOPOLOGY, BRUSH_POSE_USE_LOCK_ROTATION, BRUSH_SCENE_SPACING, BRUSH_SIZE_PRESSURE, BRUSH_SLIDE_DEFORM_DRAG, BRUSH_SLIDE_DEFORM_EXPAND, BRUSH_SLIDE_DEFORM_PINCH, BRUSH_SMEAR_DEFORM_DRAG, BRUSH_SMEAR_DEFORM_EXPAND, BRUSH_SMEAR_DEFORM_PINCH, BRUSH_SMOOTH_DEFORM_LAPLACIAN, BRUSH_SMOOTH_DEFORM_SURFACE, BRUSH_SMOOTH_STROKE, BRUSH_SNAKE_HOOK_DEFORM_ELASTIC, BRUSH_SNAKE_HOOK_DEFORM_FALLOFF, BRUSH_SPACE, BRUSH_SPACE_ATTEN, BRUSH_SPACING_PRESSURE, BRUSH_USE_CONNECTED_ONLY, BRUSH_USE_GRADIENT, IMB_BLEND_ADD, IMB_BLEND_ADD_ALPHA, IMB_BLEND_COLOR, IMB_BLEND_COLORBURN, IMB_BLEND_COLORDODGE, IMB_BLEND_DARKEN, IMB_BLEND_DIFFERENCE, IMB_BLEND_ERASE_ALPHA, IMB_BLEND_EXCLUSION, IMB_BLEND_HARDLIGHT, IMB_BLEND_HUE, IMB_BLEND_LIGHTEN, IMB_BLEND_LINEARBURN, IMB_BLEND_LINEARLIGHT, IMB_BLEND_LUMINOSITY, IMB_BLEND_MIX, IMB_BLEND_MUL, IMB_BLEND_OVERLAY, IMB_BLEND_PINLIGHT, IMB_BLEND_SATURATION, IMB_BLEND_SCREEN, IMB_BLEND_SOFTLIGHT, IMB_BLEND_SUB, IMB_BLEND_VIVIDLIGHT, KERNEL_BOX, KERNEL_GAUSSIAN, M_PI_2, MAX_BRUSH_PIXEL_RADIUS, NC_SPACE, NC_TEXTURE, ND_SPACE_IMAGE, NULL, OB_MODE_EDIT, OB_MODE_PAINT_GPENCIL, OB_MODE_SCULPT, OB_MODE_TEXTURE_PAINT, OB_MODE_VERTEX_GPENCIL, OB_MODE_VERTEX_PAINT, OB_MODE_WEIGHT_PAINT, PAINT_FALLOFF_SHAPE_TUBE, PROP_ANGLE, PROP_ANIMATABLE, PROP_BOOLEAN, PROP_COLOR_GAMMA, PROP_CONTEXT_UPDATE, prop_direction_items, PROP_DISTANCE, PROP_EDITABLE, PROP_ENUM, PROP_FACTOR, PROP_FILEPATH, PROP_FLOAT, PROP_INT, PROP_NEVER_NULL, PROP_NONE, PROP_PERCENTAGE, PROP_PIXEL, PROP_POINTER, PROP_STRING, PROP_UNSIGNED, PROP_XYZ, RNA_def_property(), RNA_def_property_array(), RNA_def_property_boolean_negative_sdna(), RNA_def_property_boolean_sdna(), RNA_def_property_clear_flag(), RNA_def_property_enum_bitflag_sdna(), RNA_def_property_enum_funcs(), RNA_def_property_enum_items(), RNA_def_property_enum_sdna(), RNA_def_property_flag(), RNA_def_property_float_default(), RNA_def_property_float_funcs(), RNA_def_property_float_sdna(), RNA_def_property_int_funcs(), RNA_def_property_int_sdna(), RNA_def_property_pointer_funcs(), RNA_def_property_pointer_sdna(), RNA_def_property_range(), RNA_def_property_string_sdna(), RNA_def_property_struct_type(), RNA_def_property_ui_icon(), RNA_def_property_ui_range(), RNA_def_property_ui_text(), RNA_def_property_update(), RNA_def_struct(), RNA_def_struct_ui_icon(), RNA_def_struct_ui_text(), rna_enum_brush_curves_sculpt_tool_items, rna_enum_brush_gpencil_sculpt_types_items, rna_enum_brush_gpencil_types_items, rna_enum_brush_gpencil_vertex_types_items, rna_enum_brush_gpencil_weight_types_items, rna_enum_brush_image_tool_items, rna_enum_brush_sculpt_tool_items, rna_enum_brush_uv_sculpt_tool_items, rna_enum_brush_vertex_tool_items, rna_enum_brush_weight_tool_items, RNA_ENUM_ITEM_SEPR, SCULPT_DISP_DIR_AREA, SCULPT_DISP_DIR_VIEW, SCULPT_DISP_DIR_X, SCULPT_DISP_DIR_Y, SCULPT_DISP_DIR_Z, and sculpt_stroke_method_items.

Referenced by RNA_def_brush().

◆ RNA_def_brush()

void RNA_def_brush ( BlenderRNA brna)

◆ rna_def_brush_capabilities()

static void rna_def_brush_capabilities ( BlenderRNA brna)
static

◆ rna_def_brush_texture_slot()

static void rna_def_brush_texture_slot ( BlenderRNA brna)
static

◆ rna_def_curves_sculpt_options()

static void rna_def_curves_sculpt_options ( BlenderRNA brna)
static

◆ rna_def_gpencil_options()

static void rna_def_gpencil_options ( BlenderRNA brna)
static

Definition at line 1288 of file rna_brush.c.

References GP_BRUSH_DEFAULT_ERASER, GP_BRUSH_DISSABLE_LASSO, GP_BRUSH_FILL_FIT_DISABLE, GP_BRUSH_FILL_HIDE, GP_BRUSH_FILL_SHOW_EXTENDLINES, GP_BRUSH_FILL_SHOW_HELPLINES, GP_BRUSH_GROUP_RANDOM, GP_BRUSH_GROUP_SETTINGS, GP_BRUSH_MATERIAL_PINNED, GP_BRUSH_OCCLUDE_ERASER, GP_BRUSH_STABILIZE_MOUSE, GP_BRUSH_TRIM_STROKE, GP_BRUSH_USE_HUE_AT_STROKE, GP_BRUSH_USE_HUE_RAND_PRESS, GP_BRUSH_USE_JITTER_PRESSURE, GP_BRUSH_USE_PRESS_AT_STROKE, GP_BRUSH_USE_PRESSURE, GP_BRUSH_USE_PRESSURE_RAND_PRESS, GP_BRUSH_USE_SAT_AT_STROKE, GP_BRUSH_USE_SAT_RAND_PRESS, GP_BRUSH_USE_STRENGTH_AT_STROKE, GP_BRUSH_USE_STRENGTH_PRESSURE, GP_BRUSH_USE_STRENGTH_RAND_PRESS, GP_BRUSH_USE_UV_AT_STROKE, GP_BRUSH_USE_UV_RAND_PRESS, GP_BRUSH_USE_VAL_AT_STROKE, GP_BRUSH_USE_VAL_RAND_PRESS, GP_MAX_INPUT_SAMPLES, GP_SCULPT_FLAGMODE_APPLY_POSITION, GP_SCULPT_FLAGMODE_APPLY_STRENGTH, GP_SCULPT_FLAGMODE_APPLY_THICKNESS, GP_SCULPT_FLAGMODE_APPLY_UV, GP_SCULPT_FLAGMODE_AUTOMASK_LAYER, GP_SCULPT_FLAGMODE_AUTOMASK_MATERIAL, GP_SCULPT_FLAGMODE_AUTOMASK_STROKE, GP_STROKE_CAP_FLAT, GP_STROKE_CAP_ROUND, GPENCIL_MAX_FILL_FAC, GPENCIL_MIN_FILL_FAC, GPPAINT_MODE_BOTH, GPPAINT_MODE_FILL, GPPAINT_MODE_STROKE, M_PI_2, NC_GPENCIL, NC_SCENE, ND_DATA, ND_TOOLSETTINGS, NULL, PROP_ANGLE, PROP_ANIMATABLE, PROP_BOOLEAN, PROP_CONTEXT_UPDATE, prop_direction_items, PROP_EDITABLE, PROP_ENUM, PROP_FACTOR, PROP_FLOAT, PROP_ID_SELF_CHECK, PROP_INT, PROP_NONE, PROP_PERCENTAGE, PROP_PIXEL, PROP_POINTER, PROP_XYZ, RNA_def_parameter_clear_flags(), RNA_def_property(), RNA_def_property_array(), RNA_def_property_boolean_default(), RNA_def_property_boolean_funcs(), RNA_def_property_boolean_negative_sdna(), RNA_def_property_boolean_sdna(), RNA_def_property_clear_flag(), RNA_def_property_enum_bitflag_sdna(), RNA_def_property_enum_items(), RNA_def_property_enum_sdna(), RNA_def_property_flag(), RNA_def_property_float_default(), RNA_def_property_float_sdna(), RNA_def_property_int_default(), RNA_def_property_int_sdna(), RNA_def_property_pointer_funcs(), RNA_def_property_pointer_sdna(), RNA_def_property_range(), RNA_def_property_struct_type(), RNA_def_property_ui_icon(), RNA_def_property_ui_range(), RNA_def_property_ui_text(), RNA_def_property_update(), RNA_def_struct(), RNA_def_struct_path_func(), RNA_def_struct_sdna(), RNA_def_struct_ui_text(), rna_enum_gpencil_brush_eraser_modes_items, rna_enum_gpencil_brush_modes_items, rna_enum_gpencil_brush_paint_icons_items, rna_enum_gpencil_brush_sculpt_icons_items, rna_enum_gpencil_brush_vertex_icons_items, rna_enum_gpencil_brush_weight_icons_items, rna_enum_gpencil_fill_direction_items, rna_enum_gpencil_fill_draw_modes_items, and rna_enum_gpencil_fill_layers_modes_items.

Referenced by RNA_def_brush().

◆ rna_def_image_paint_capabilities()

static void rna_def_image_paint_capabilities ( BlenderRNA brna)
static

◆ rna_def_operator_stroke_element()

static void rna_def_operator_stroke_element ( BlenderRNA brna)
static

A brush stroke is a list of changes to the brush that can occur during a stroke

  • 3D location of the brush
  • 2D mouse location
  • Tablet pressure
  • Direction flip
  • Tool switch
  • Time

Definition at line 3640 of file rna_brush.c.

References PROP_BOOLEAN, PROP_FACTOR, PROP_FLOAT, PROP_IDPROPERTY, PROP_NONE, PROP_UNSIGNED, PROP_XYZ, RNA_def_property(), RNA_def_property_array(), RNA_def_property_flag(), RNA_def_property_range(), RNA_def_property_ui_text(), RNA_def_struct(), and RNA_def_struct_ui_text().

Referenced by RNA_def_brush().

◆ rna_def_sculpt_capabilities()

static void rna_def_sculpt_capabilities ( BlenderRNA brna)
static

◆ rna_def_vertex_paint_capabilities()

static void rna_def_vertex_paint_capabilities ( BlenderRNA brna)
static

◆ rna_def_weight_paint_capabilities()

static void rna_def_weight_paint_capabilities ( BlenderRNA brna)
static

Variable Documentation

◆ prop_direction_items

const EnumPropertyItem prop_direction_items[]
static
Initial value:
= {
{0, "ADD", ICON_ADD, "Add", "Add effect of brush"},
{BRUSH_DIR_IN, "SUBTRACT", ICON_REMOVE, "Subtract", "Subtract effect of brush"},
{0, NULL, 0, NULL, NULL},
}
@ BRUSH_DIR_IN

Definition at line 28 of file rna_brush.c.

Referenced by rna_def_brush(), and rna_def_gpencil_options().

◆ rna_enum_brush_curves_sculpt_tool_items

const EnumPropertyItem rna_enum_brush_curves_sculpt_tool_items[]
Initial value:
= {
{CURVES_SCULPT_TOOL_COMB, "COMB", ICON_BRUSH_CURVES_COMB, "Comb Curves", ""},
{CURVES_SCULPT_TOOL_DELETE, "DELETE", ICON_BRUSH_CURVES_DELETE, "Delete Curves", ""},
{CURVES_SCULPT_TOOL_SNAKE_HOOK, "SNAKE_HOOK", ICON_BRUSH_CURVES_SNAKE_HOOK, "Curves Snake Hook", ""},
{CURVES_SCULPT_TOOL_ADD, "ADD", ICON_BRUSH_CURVES_ADD, "Add Curves", ""},
{CURVES_SCULPT_TOOL_GROW_SHRINK, "GROW_SHRINK", ICON_BRUSH_CURVES_GROW_SHRINK, "Grow / Shrink Curves", ""},
{CURVES_SCULPT_TOOL_SELECTION_PAINT, "SELECTION_PAINT", ICON_BRUSH_PAINT_SELECT, "Paint Selection", ""},
{CURVES_SCULPT_TOOL_PINCH, "PINCH", ICON_BRUSH_CURVES_PINCH, "Pinch Curves", ""},
{CURVES_SCULPT_TOOL_SMOOTH, "SMOOTH", ICON_BRUSH_CURVES_SMOOTH, "Smooth Curves", ""},
{CURVES_SCULPT_TOOL_PUFF, "PUFF", ICON_BRUSH_CURVES_PUFF, "Puff Curves", ""},
{CURVES_SCULPT_TOOL_DENSITY, "DENSITY", ICON_BRUSH_CURVES_DENSITY, "Density Curves", ""},
{CURVES_SCULPT_TOOL_SLIDE, "SLIDE", ICON_BRUSH_CURVES_SLIDE, "Slide Curves", ""},
{0, NULL, 0, NULL, NULL},
}
@ CURVES_SCULPT_TOOL_SMOOTH
@ CURVES_SCULPT_TOOL_SELECTION_PAINT
@ CURVES_SCULPT_TOOL_DENSITY
@ CURVES_SCULPT_TOOL_GROW_SHRINK
@ CURVES_SCULPT_TOOL_DELETE
@ CURVES_SCULPT_TOOL_PINCH
@ CURVES_SCULPT_TOOL_SNAKE_HOOK
@ CURVES_SCULPT_TOOL_ADD
@ CURVES_SCULPT_TOOL_COMB
@ CURVES_SCULPT_TOOL_PUFF
@ CURVES_SCULPT_TOOL_SLIDE

Definition at line 247 of file rna_brush.c.

Referenced by BKE_paint_get_tool_enum_from_paintmode(), and rna_def_brush().

◆ rna_enum_brush_gpencil_sculpt_types_items

const EnumPropertyItem rna_enum_brush_gpencil_sculpt_types_items[]

Definition at line 193 of file rna_brush.c.

Referenced by BKE_paint_get_tool_enum_from_paintmode(), and rna_def_brush().

◆ rna_enum_brush_gpencil_types_items

const EnumPropertyItem rna_enum_brush_gpencil_types_items[]
Initial value:
= {
"DRAW",
ICON_STROKE,
"Draw",
"The brush is of type used for drawing strokes"},
{GPAINT_TOOL_FILL, "FILL", ICON_COLOR, "Fill", "The brush is of type used for filling areas"},
"ERASE",
ICON_PANEL_CLOSE,
"Erase",
"The brush is used for erasing strokes"},
"TINT",
ICON_BRUSH_TEXDRAW,
"Tint",
"The brush is of type used for tinting strokes"},
{0, NULL, 0, NULL, NULL},
}
@ GPAINT_TOOL_ERASE
@ GPAINT_TOOL_FILL
@ GPAINT_TOOL_DRAW
@ GPAINT_TOOL_TINT

Definition at line 164 of file rna_brush.c.

Referenced by BKE_paint_get_tool_enum_from_paintmode(), and rna_def_brush().

◆ rna_enum_brush_gpencil_vertex_types_items

const EnumPropertyItem rna_enum_brush_gpencil_vertex_types_items[]
Initial value:
= {
{GPVERTEX_TOOL_DRAW, "DRAW", ICON_BRUSH_MIX, "Draw", ""},
{GPVERTEX_TOOL_BLUR, "BLUR", ICON_BRUSH_BLUR, "Blur", ""},
{GPVERTEX_TOOL_AVERAGE, "AVERAGE", ICON_BRUSH_BLUR, "Average", ""},
{GPVERTEX_TOOL_SMEAR, "SMEAR", ICON_BRUSH_BLUR, "Smear", ""},
{GPVERTEX_TOOL_REPLACE, "REPLACE", ICON_BRUSH_BLUR, "Replace", ""},
{0, NULL, 0, NULL, NULL},
}
@ GPVERTEX_TOOL_AVERAGE
@ GPVERTEX_TOOL_REPLACE
@ GPVERTEX_TOOL_DRAW
@ GPVERTEX_TOOL_BLUR
@ GPVERTEX_TOOL_SMEAR

Definition at line 184 of file rna_brush.c.

Referenced by BKE_paint_get_tool_enum_from_paintmode(), and rna_def_brush().

◆ rna_enum_brush_gpencil_weight_types_items

const EnumPropertyItem rna_enum_brush_gpencil_weight_types_items[]
Initial value:
= {
"WEIGHT",
ICON_GPBRUSH_WEIGHT,
"Weight",
"Weight Paint for Vertex Groups"},
{0, NULL, 0, NULL, NULL},
}
@ GPWEIGHT_TOOL_DRAW

Definition at line 237 of file rna_brush.c.

Referenced by BKE_paint_get_tool_enum_from_paintmode(), and rna_def_brush().

◆ rna_enum_brush_image_tool_items

const EnumPropertyItem rna_enum_brush_image_tool_items[]
Initial value:
= {
{PAINT_TOOL_DRAW, "DRAW", ICON_BRUSH_TEXDRAW, "Draw", ""},
{PAINT_TOOL_SOFTEN, "SOFTEN", ICON_BRUSH_SOFTEN, "Soften", ""},
{PAINT_TOOL_SMEAR, "SMEAR", ICON_BRUSH_SMEAR, "Smear", ""},
{PAINT_TOOL_CLONE, "CLONE", ICON_BRUSH_CLONE, "Clone", ""},
{PAINT_TOOL_FILL, "FILL", ICON_BRUSH_TEXFILL, "Fill", ""},
{PAINT_TOOL_MASK, "MASK", ICON_BRUSH_TEXMASK, "Mask", ""},
{0, NULL, 0, NULL, NULL},
}
@ PAINT_TOOL_CLONE
@ PAINT_TOOL_SMEAR
@ PAINT_TOOL_SOFTEN
@ PAINT_TOOL_MASK
@ PAINT_TOOL_FILL
@ PAINT_TOOL_DRAW

Definition at line 154 of file rna_brush.c.

Referenced by BKE_paint_get_tool_enum_from_paintmode(), and rna_def_brush().

◆ rna_enum_brush_sculpt_tool_items

const EnumPropertyItem rna_enum_brush_sculpt_tool_items[]

Definition at line 91 of file rna_brush.c.

Referenced by BKE_paint_get_tool_enum_from_paintmode(), and rna_def_brush().

◆ rna_enum_brush_texture_slot_map_all_mode_items

const EnumPropertyItem rna_enum_brush_texture_slot_map_all_mode_items[]
static
Initial value:
= {
{MTEX_MAP_MODE_VIEW, "VIEW_PLANE", 0, "View Plane", ""},
{MTEX_MAP_MODE_AREA, "AREA_PLANE", 0, "Area Plane", ""},
{MTEX_MAP_MODE_TILED, "TILED", 0, "Tiled", ""},
{MTEX_MAP_MODE_3D, "3D", 0, "3D", ""},
{MTEX_MAP_MODE_RANDOM, "RANDOM", 0, "Random", ""},
{MTEX_MAP_MODE_STENCIL, "STENCIL", 0, "Stencil", ""},
{0, NULL, 0, NULL, NULL},
}
#define MTEX_MAP_MODE_VIEW
#define MTEX_MAP_MODE_3D
#define MTEX_MAP_MODE_STENCIL
#define MTEX_MAP_MODE_TILED
#define MTEX_MAP_MODE_AREA
#define MTEX_MAP_MODE_RANDOM

Definition at line 69 of file rna_brush.c.

Referenced by rna_def_brush_texture_slot().

◆ rna_enum_brush_uv_sculpt_tool_items

const EnumPropertyItem rna_enum_brush_uv_sculpt_tool_items[]
Initial value:
= {
{UV_SCULPT_TOOL_GRAB, "GRAB", 0, "Grab", "Grab UVs"},
{UV_SCULPT_TOOL_RELAX, "RELAX", 0, "Relax", "Relax UVs"},
{UV_SCULPT_TOOL_PINCH, "PINCH", 0, "Pinch", "Pinch UVs"},
{0, NULL, 0, NULL, NULL},
}
@ UV_SCULPT_TOOL_GRAB
@ UV_SCULPT_TOOL_RELAX
@ UV_SCULPT_TOOL_PINCH

Definition at line 131 of file rna_brush.c.

Referenced by BKE_paint_get_tool_enum_from_paintmode(), and rna_def_brush().

◆ rna_enum_brush_vertex_tool_items

const EnumPropertyItem rna_enum_brush_vertex_tool_items[]
Initial value:
= {
{VPAINT_TOOL_DRAW, "DRAW", ICON_BRUSH_MIX, "Draw", ""},
{VPAINT_TOOL_BLUR, "BLUR", ICON_BRUSH_BLUR, "Blur", ""},
{VPAINT_TOOL_AVERAGE, "AVERAGE", ICON_BRUSH_BLUR, "Average", ""},
{VPAINT_TOOL_SMEAR, "SMEAR", ICON_BRUSH_BLUR, "Smear", ""},
{0, NULL, 0, NULL, NULL},
}
@ VPAINT_TOOL_BLUR
@ VPAINT_TOOL_DRAW
@ VPAINT_TOOL_SMEAR
@ VPAINT_TOOL_AVERAGE

Definition at line 138 of file rna_brush.c.

Referenced by BKE_paint_get_tool_enum_from_paintmode(), and rna_def_brush().

◆ rna_enum_brush_weight_tool_items

const EnumPropertyItem rna_enum_brush_weight_tool_items[]
Initial value:
= {
{WPAINT_TOOL_DRAW, "DRAW", ICON_BRUSH_MIX, "Draw", ""},
{WPAINT_TOOL_BLUR, "BLUR", ICON_BRUSH_BLUR, "Blur", ""},
{WPAINT_TOOL_AVERAGE, "AVERAGE", ICON_BRUSH_BLUR, "Average", ""},
{WPAINT_TOOL_SMEAR, "SMEAR", ICON_BRUSH_BLUR, "Smear", ""},
{0, NULL, 0, NULL, NULL},
}
@ WPAINT_TOOL_BLUR
@ WPAINT_TOOL_AVERAGE
@ WPAINT_TOOL_SMEAR
@ WPAINT_TOOL_DRAW

Definition at line 146 of file rna_brush.c.

Referenced by BKE_paint_get_tool_enum_from_paintmode(), and rna_def_brush().

◆ rna_enum_gpencil_brush_eraser_modes_items

EnumPropertyItem rna_enum_gpencil_brush_eraser_modes_items[]
static
Initial value:
= {
"SOFT",
0,
"Dissolve",
"Erase strokes, fading their points strength and thickness"},
{GP_BRUSH_ERASER_HARD, "HARD", 0, "Point", "Erase stroke points"},
{GP_BRUSH_ERASER_STROKE, "STROKE", 0, "Stroke", "Erase entire strokes"},
{0, NULL, 0, NULL, NULL},
}
@ GP_BRUSH_ERASER_SOFT
@ GP_BRUSH_ERASER_STROKE
@ GP_BRUSH_ERASER_HARD

Definition at line 264 of file rna_brush.c.

Referenced by rna_def_gpencil_options().

◆ rna_enum_gpencil_brush_modes_items

EnumPropertyItem rna_enum_gpencil_brush_modes_items[]
static
Initial value:
= {
{GP_BRUSH_MODE_ACTIVE, "ACTIVE", 0, "Active", "Use current mode"},
{GP_BRUSH_MODE_MATERIAL, "MATERIAL", 0, "Material", "Use always material mode"},
{GP_BRUSH_MODE_VERTEXCOLOR, "VERTEXCOLOR", 0, "Vertex Color", "Use always Vertex Color mode"},
{0, NULL, 0, NULL, NULL}}
@ GP_BRUSH_MODE_VERTEXCOLOR
@ GP_BRUSH_MODE_MATERIAL
@ GP_BRUSH_MODE_ACTIVE

Definition at line 300 of file rna_brush.c.

Referenced by rna_def_gpencil_options().

◆ rna_enum_gpencil_brush_paint_icons_items

EnumPropertyItem rna_enum_gpencil_brush_paint_icons_items[]
static
Initial value:
= {
{GP_BRUSH_ICON_PENCIL, "PENCIL", ICON_GPBRUSH_PENCIL, "Pencil", ""},
{GP_BRUSH_ICON_PEN, "PEN", ICON_GPBRUSH_PEN, "Pen", ""},
{GP_BRUSH_ICON_INK, "INK", ICON_GPBRUSH_INK, "Ink", ""},
{GP_BRUSH_ICON_INKNOISE, "INKNOISE", ICON_GPBRUSH_INKNOISE, "Ink Noise", ""},
{GP_BRUSH_ICON_BLOCK, "BLOCK", ICON_GPBRUSH_BLOCK, "Block", ""},
{GP_BRUSH_ICON_MARKER, "MARKER", ICON_GPBRUSH_MARKER, "Marker", ""},
{GP_BRUSH_ICON_AIRBRUSH, "AIRBRUSH", ICON_GPBRUSH_AIRBRUSH, "Airbrush", ""},
{GP_BRUSH_ICON_CHISEL, "CHISEL", ICON_GPBRUSH_CHISEL, "Chisel", ""},
{GP_BRUSH_ICON_FILL, "FILL", ICON_GPBRUSH_FILL, "Fill", ""},
{GP_BRUSH_ICON_ERASE_SOFT, "SOFT", ICON_GPBRUSH_ERASE_SOFT, "Eraser Soft", ""},
{GP_BRUSH_ICON_ERASE_HARD, "HARD", ICON_GPBRUSH_ERASE_HARD, "Eraser Hard", ""},
{GP_BRUSH_ICON_ERASE_STROKE, "STROKE", ICON_GPBRUSH_ERASE_STROKE, "Eraser Stroke", ""},
{0, NULL, 0, NULL, NULL},
}
@ GP_BRUSH_ICON_ERASE_SOFT
@ GP_BRUSH_ICON_FILL
@ GP_BRUSH_ICON_PENCIL
@ GP_BRUSH_ICON_INKNOISE
@ GP_BRUSH_ICON_PEN
@ GP_BRUSH_ICON_MARKER
@ GP_BRUSH_ICON_BLOCK
@ GP_BRUSH_ICON_INK
@ GP_BRUSH_ICON_AIRBRUSH
@ GP_BRUSH_ICON_CHISEL
@ GP_BRUSH_ICON_ERASE_STROKE
@ GP_BRUSH_ICON_ERASE_HARD

Definition at line 306 of file rna_brush.c.

Referenced by rna_def_gpencil_options().

◆ rna_enum_gpencil_brush_sculpt_icons_items

EnumPropertyItem rna_enum_gpencil_brush_sculpt_icons_items[]
static
Initial value:
= {
{GP_BRUSH_ICON_GPBRUSH_SMOOTH, "SMOOTH", ICON_GPBRUSH_SMOOTH, "Smooth", ""},
{GP_BRUSH_ICON_GPBRUSH_THICKNESS, "THICKNESS", ICON_GPBRUSH_THICKNESS, "Thickness", ""},
{GP_BRUSH_ICON_GPBRUSH_STRENGTH, "STRENGTH", ICON_GPBRUSH_STRENGTH, "Strength", ""},
{GP_BRUSH_ICON_GPBRUSH_RANDOMIZE, "RANDOMIZE", ICON_GPBRUSH_RANDOMIZE, "Randomize", ""},
{GP_BRUSH_ICON_GPBRUSH_GRAB, "GRAB", ICON_GPBRUSH_GRAB, "Grab", ""},
{GP_BRUSH_ICON_GPBRUSH_PUSH, "PUSH", ICON_GPBRUSH_PUSH, "Push", ""},
{GP_BRUSH_ICON_GPBRUSH_TWIST, "TWIST", ICON_GPBRUSH_TWIST, "Twist", ""},
{GP_BRUSH_ICON_GPBRUSH_PINCH, "PINCH", ICON_GPBRUSH_PINCH, "Pinch", ""},
{GP_BRUSH_ICON_GPBRUSH_CLONE, "CLONE", ICON_GPBRUSH_CLONE, "Clone", ""},
{0, NULL, 0, NULL, NULL},
}
@ GP_BRUSH_ICON_GPBRUSH_RANDOMIZE
@ GP_BRUSH_ICON_GPBRUSH_GRAB
@ GP_BRUSH_ICON_GPBRUSH_STRENGTH
@ GP_BRUSH_ICON_GPBRUSH_TWIST
@ GP_BRUSH_ICON_GPBRUSH_PINCH
@ GP_BRUSH_ICON_GPBRUSH_THICKNESS
@ GP_BRUSH_ICON_GPBRUSH_CLONE
@ GP_BRUSH_ICON_GPBRUSH_SMOOTH
@ GP_BRUSH_ICON_GPBRUSH_PUSH

Definition at line 322 of file rna_brush.c.

Referenced by rna_def_gpencil_options().

◆ rna_enum_gpencil_brush_vertex_icons_items

EnumPropertyItem rna_enum_gpencil_brush_vertex_icons_items[]
static
Initial value:
= {
{GP_BRUSH_ICON_VERTEX_DRAW, "DRAW", ICON_BRUSH_MIX, "Draw", ""},
{GP_BRUSH_ICON_VERTEX_BLUR, "BLUR", ICON_BRUSH_BLUR, "Blur", ""},
{GP_BRUSH_ICON_VERTEX_AVERAGE, "AVERAGE", ICON_BRUSH_BLUR, "Average", ""},
{GP_BRUSH_ICON_VERTEX_SMEAR, "SMEAR", ICON_BRUSH_BLUR, "Smear", ""},
{GP_BRUSH_ICON_VERTEX_REPLACE, "REPLACE", ICON_BRUSH_MIX, "Replace", ""},
{0, NULL, 0, NULL, NULL},
}
@ GP_BRUSH_ICON_VERTEX_BLUR
@ GP_BRUSH_ICON_VERTEX_REPLACE
@ GP_BRUSH_ICON_VERTEX_DRAW
@ GP_BRUSH_ICON_VERTEX_SMEAR
@ GP_BRUSH_ICON_VERTEX_AVERAGE

Definition at line 339 of file rna_brush.c.

Referenced by rna_def_gpencil_options().

◆ rna_enum_gpencil_brush_weight_icons_items

EnumPropertyItem rna_enum_gpencil_brush_weight_icons_items[]
static
Initial value:
= {
{GP_BRUSH_ICON_GPBRUSH_WEIGHT, "DRAW", ICON_GPBRUSH_WEIGHT, "Draw", ""},
{0, NULL, 0, NULL, NULL},
}
@ GP_BRUSH_ICON_GPBRUSH_WEIGHT

Definition at line 335 of file rna_brush.c.

Referenced by rna_def_gpencil_options().

◆ rna_enum_gpencil_fill_direction_items

EnumPropertyItem rna_enum_gpencil_fill_direction_items[]
static
Initial value:
= {
{0, "NORMAL", ICON_ADD, "Normal", "Fill internal area"},
{BRUSH_DIR_IN, "INVERT", ICON_REMOVE, "Inverted", "Fill inverted area"},
{0, NULL, 0, NULL, NULL},
}

Definition at line 294 of file rna_brush.c.

Referenced by rna_def_gpencil_options().

◆ rna_enum_gpencil_fill_draw_modes_items

EnumPropertyItem rna_enum_gpencil_fill_draw_modes_items[]
static
Initial value:
= {
"BOTH",
0,
"All",
"Use both visible strokes and edit lines as fill boundary limits"},
{GP_FILL_DMODE_STROKE, "STROKE", 0, "Strokes", "Use visible strokes as fill boundary limits"},
{GP_FILL_DMODE_CONTROL, "CONTROL", 0, "Edit Lines", "Use edit lines as fill boundary limits"},
{0, NULL, 0, NULL, NULL}}
@ GP_FILL_DMODE_STROKE
@ GP_FILL_DMODE_CONTROL
@ GP_FILL_DMODE_BOTH

Definition at line 275 of file rna_brush.c.

Referenced by rna_def_gpencil_options().

◆ rna_enum_gpencil_fill_layers_modes_items

EnumPropertyItem rna_enum_gpencil_fill_layers_modes_items[]
static
Initial value:
= {
{GP_FILL_GPLMODE_VISIBLE, "VISIBLE", 0, "Visible", "Visible layers"},
{GP_FILL_GPLMODE_ACTIVE, "ACTIVE", 0, "Active", "Only active layer"},
{GP_FILL_GPLMODE_ABOVE, "ABOVE", 0, "Layer Above", "Layer above active"},
{GP_FILL_GPLMODE_BELOW, "BELOW", 0, "Layer Below", "Layer below active"},
{GP_FILL_GPLMODE_ALL_ABOVE, "ALL_ABOVE", 0, "All Above", "All layers above active"},
{GP_FILL_GPLMODE_ALL_BELOW, "ALL_BELOW", 0, "All Below", "All layers below active"},
{0, NULL, 0, NULL, NULL}}
@ GP_FILL_GPLMODE_ABOVE
@ GP_FILL_GPLMODE_ALL_ABOVE
@ GP_FILL_GPLMODE_VISIBLE
@ GP_FILL_GPLMODE_ALL_BELOW
@ GP_FILL_GPLMODE_BELOW
@ GP_FILL_GPLMODE_ACTIVE

Definition at line 285 of file rna_brush.c.

Referenced by rna_def_gpencil_options().

◆ sculpt_stroke_method_items

const EnumPropertyItem sculpt_stroke_method_items[]
static
Initial value:
= {
{0, "DOTS", 0, "Dots", "Apply paint on each mouse move step"},
{BRUSH_DRAG_DOT, "DRAG_DOT", 0, "Drag Dot", "Allows a single dot to be carefully positioned"},
"SPACE",
0,
"Space",
"Limit brush application to the distance specified by spacing"},
"AIRBRUSH",
0,
"Airbrush",
"Keep applying paint effect while holding mouse (spray)"},
{BRUSH_ANCHORED, "ANCHORED", 0, "Anchored", "Keep the brush anchored to the initial location"},
{BRUSH_LINE, "LINE", 0, "Line", "Draw a line with dabs separated according to spacing"},
"CURVE",
0,
"Curve",
"Define the stroke curve with a bezier curve (dabs are separated according to spacing)"},
{0, NULL, 0, NULL, NULL},
}
@ BRUSH_DRAG_DOT
@ BRUSH_LINE
@ BRUSH_CURVE
@ BRUSH_ANCHORED
@ BRUSH_AIRBRUSH
@ BRUSH_SPACE

Definition at line 46 of file rna_brush.c.

Referenced by rna_def_brush().