33 {0,
"ADD", ICON_ADD,
"Add",
"Add effect of brush"},
34 {
BRUSH_DIR_IN,
"SUBTRACT", ICON_REMOVE,
"Subtract",
"Subtract effect of brush"},
35 {0,
nullptr, 0,
nullptr,
nullptr},
44 "Allows a single dot to be carefully positioned"},
49 "Limit brush application to the distance specified by spacing"},
54 "Keep applying paint effect while holding mouse (spray)"},
59 "Keep the brush anchored to the initial location"},
60 {
BRUSH_STROKE_LINE,
"LINE", 0,
"Line",
"Draw a line with dabs separated according to spacing"},
65 "Define the stroke curve with a Bézier curve (dabs are separated according to spacing)"},
66 {0,
nullptr, 0,
nullptr,
nullptr},
76 {0,
nullptr, 0,
nullptr,
nullptr},
90 {0,
nullptr, 0,
nullptr,
nullptr},
97 "use_automasking_topology",
100 "Affect only vertices connected to the active vertex under the brush"},
102 "use_automasking_face_sets",
105 "Affect only vertices that share face sets with the active vertex"},
107 "use_automasking_boundary_edges",
109 "Mesh Boundary Auto-Masking",
110 "Do not affect non manifold boundary edges"},
112 "use_automasking_boundary_face_sets",
114 "Face Sets Boundary Automasking",
115 "Do not affect vertices that belong to a face set boundary"},
117 "use_automasking_cavity",
120 "Do not affect vertices on peaks, based on the surface curvature"},
122 "use_automasking_cavity_inverted",
124 "Inverted Cavity Mask",
125 "Do not affect vertices within crevices, based on the surface curvature"},
127 "use_automasking_custom_cavity_curve",
129 "Custom Cavity Curve",
132 "use_automasking_start_normal",
135 "Affect only vertices with a similar normal to where the stroke starts"},
137 "use_automasking_view_normal",
140 "Affect only vertices with a normal that faces the viewer"},
142 "use_automasking_view_occlusion",
145 "Only affect vertices that are not occluded by other faces (slower performance)"},
146 {0,
nullptr, 0,
nullptr,
nullptr}};
180 "DISPLACEMENT_ERASER",
182 "Multires Displacement Eraser",
185 "DISPLACEMENT_SMEAR",
187 "Multires Displacement Smear",
192 {0,
nullptr, 0,
nullptr,
nullptr},
200 {0,
nullptr, 0,
nullptr,
nullptr},
208 {0,
nullptr, 0,
nullptr,
nullptr},
218 {0,
nullptr, 0,
nullptr,
nullptr},
226 "The brush is of type used for drawing strokes"},
231 "The brush is of type used for filling areas"},
236 "The brush is used for erasing strokes"},
238 {0,
nullptr, 0,
nullptr,
nullptr},
247 "Smooth out the colors of adjacent stroke points"},
252 "Smooth out colors with the average color under the brush"},
257 "Smudge colors by grabbing and dragging them"},
262 "Replace the color of stroke points that already have a color applied"},
263 {0,
nullptr, 0,
nullptr,
nullptr},
274 "Introduce jitter/randomness into strokes"},
279 "Translate the set of points initially within the brush circle"},
284 "Move points out of the way, as if combing them"},
289 "Rotate points around the midpoint of the brush"},
294 "Pull points towards the midpoint of the brush"},
299 "Paste copies of the strokes stored on the internal clipboard"},
300 {0,
nullptr, 0,
nullptr,
nullptr}};
309 "Average weight in active vertex group"},
311 {0,
nullptr, 0,
nullptr,
nullptr},
329 {0,
nullptr, 0,
nullptr,
nullptr},
338 "Erase strokes, fading their points strength and thickness"},
341 {0,
nullptr, 0,
nullptr,
nullptr},
349 "Use both visible strokes and edit lines as fill boundary limits"},
352 {0,
nullptr, 0,
nullptr,
nullptr}};
357 {0,
nullptr, 0,
nullptr,
nullptr}};
366 {0,
nullptr, 0,
nullptr,
nullptr}};
369 {0,
"NORMAL", ICON_ADD,
"Normal",
"Fill internal area"},
370 {
BRUSH_DIR_IN,
"INVERT", ICON_REMOVE,
"Inverted",
"Fill inverted area"},
371 {0,
nullptr, 0,
nullptr,
nullptr},
377 {0,
nullptr, 0,
nullptr,
nullptr}};
383 {0,
nullptr, 0,
nullptr,
nullptr}};
407# define GPENCIL_USE_VERTEX_COLOR(toolsettings) \
408 (((toolsettings)->gp_paint->mode == GPPAINT_FLAG_USE_VERTEXCOLOR))
412static bool rna_TextureCapabilities_has_random_texture_angle_get(
PointerRNA *ptr)
414 MTex *mtex =
static_cast<MTex *
>(ptr->data);
418static bool rna_TextureCapabilities_has_texture_angle_get(
PointerRNA *ptr)
420 MTex *mtex =
static_cast<MTex *
>(ptr->data);
424static bool rna_TextureCapabilities_has_texture_angle_source_get(
PointerRNA *ptr)
426 MTex *mtex =
static_cast<MTex *
>(ptr->data);
430static bool rna_BrushCapabilities_has_overlay_get(
PointerRNA *ptr)
437static bool rna_BrushCapabilities_has_random_texture_angle_get(
PointerRNA *ptr)
443static bool rna_BrushCapabilities_has_smooth_stroke_get(
PointerRNA *ptr)
446 return (!(
ELEM(br->stroke_method,
453static bool rna_BrushCapabilities_has_spacing_get(
PointerRNA *ptr)
459static bool rna_BrushCapabilitiesSculpt_has_accumulate_get(
PointerRNA *ptr)
461 const Brush *br =
static_cast<const Brush *
>(ptr->data);
465static bool rna_BrushCapabilitiesSculpt_has_topology_rake_get(
PointerRNA *ptr)
467 const Brush *br =
static_cast<const Brush *
>(ptr->data);
471static bool rna_BrushCapabilitiesSculpt_has_auto_smooth_get(
PointerRNA *ptr)
473 const Brush *br =
static_cast<const Brush *
>(ptr->data);
477static bool rna_BrushCapabilitiesSculpt_has_tip_roundness_get(
PointerRNA *ptr)
479 const Brush *br =
static_cast<const Brush *
>(ptr->data);
483static bool rna_BrushCapabilitiesSculpt_has_hardness_get(
PointerRNA *ptr)
485 const Brush *br =
static_cast<const Brush *
>(ptr->data);
489static bool rna_BrushCapabilitiesSculpt_has_height_get(
PointerRNA *ptr)
491 const Brush *br =
static_cast<const Brush *
>(ptr->data);
495static bool rna_BrushCapabilitiesSculpt_has_plane_height_get(
PointerRNA *ptr)
497 const Brush *br =
static_cast<const Brush *
>(ptr->data);
501static bool rna_BrushCapabilitiesSculpt_has_plane_depth_get(
PointerRNA *ptr)
503 const Brush *br =
static_cast<const Brush *
>(ptr->data);
507static bool rna_BrushCapabilitiesSculpt_has_jitter_get(
PointerRNA *ptr)
509 const Brush *br =
static_cast<const Brush *
>(ptr->data);
513static bool rna_BrushCapabilitiesSculpt_has_normal_weight_get(
PointerRNA *ptr)
515 const Brush *br =
static_cast<const Brush *
>(ptr->data);
519static bool rna_BrushCapabilitiesSculpt_has_rake_factor_get(
PointerRNA *ptr)
521 const Brush *br =
static_cast<const Brush *
>(ptr->data);
525static bool rna_BrushCapabilitiesSculpt_has_persistence_get(
PointerRNA *ptr)
527 const Brush *br =
static_cast<const Brush *
>(ptr->data);
531static bool rna_BrushCapabilitiesSculpt_has_pinch_factor_get(
PointerRNA *ptr)
533 const Brush *br =
static_cast<const Brush *
>(ptr->data);
537static bool rna_BrushCapabilitiesSculpt_has_plane_offset_get(
PointerRNA *ptr)
539 const Brush *br =
static_cast<const Brush *
>(ptr->data);
543static bool rna_BrushCapabilitiesSculpt_has_random_texture_angle_get(
PointerRNA *ptr)
545 const Brush *br =
static_cast<const Brush *
>(ptr->data);
549static bool rna_BrushCapabilitiesSculpt_has_sculpt_plane_get(
PointerRNA *ptr)
551 const Brush *br =
static_cast<const Brush *
>(ptr->data);
555static bool rna_BrushCapabilitiesSculpt_has_color_get(
PointerRNA *ptr)
557 const Brush *br =
static_cast<const Brush *
>(ptr->data);
561static bool rna_BrushCapabilitiesSculpt_has_secondary_color_get(
PointerRNA *ptr)
563 const Brush *br =
static_cast<const Brush *
>(ptr->data);
567static bool rna_BrushCapabilitiesSculpt_has_smooth_stroke_get(
PointerRNA *ptr)
569 const Brush *br =
static_cast<const Brush *
>(ptr->data);
573static bool rna_BrushCapabilitiesSculpt_has_space_attenuation_get(
PointerRNA *ptr)
575 const Brush *br =
static_cast<const Brush *
>(ptr->data);
579static bool rna_BrushCapabilitiesSculpt_has_strength_pressure_get(
PointerRNA *ptr)
581 const Brush *br =
static_cast<const Brush *
>(ptr->data);
585static bool rna_BrushCapabilitiesSculpt_has_size_pressure_get(
PointerRNA *ptr)
587 const Brush *br =
static_cast<const Brush *
>(ptr->data);
591static bool rna_BrushCapabilitiesSculpt_has_auto_smooth_pressure_get(
PointerRNA *ptr)
593 const Brush *br =
static_cast<const Brush *
>(ptr->data);
597static bool rna_BrushCapabilitiesSculpt_has_normal_radius_get(
PointerRNA *ptr)
599 const Brush *br =
static_cast<const Brush *
>(ptr->data);
603static bool rna_BrushCapabilitiesSculpt_has_hardness_pressure_get(
PointerRNA *ptr)
605 const Brush *br =
static_cast<const Brush *
>(ptr->data);
609static bool rna_BrushCapabilitiesSculpt_has_direction_get(
PointerRNA *ptr)
611 const Brush *br =
static_cast<const Brush *
>(ptr->data);
615static bool rna_BrushCapabilitiesSculpt_has_gravity_get(
PointerRNA *ptr)
617 const Brush *br =
static_cast<const Brush *
>(ptr->data);
621static bool rna_BrushCapabilitiesSculpt_has_tilt_get(
PointerRNA *ptr)
623 const Brush *br =
static_cast<const Brush *
>(ptr->data);
627static bool rna_BrushCapabilitiesSculpt_has_dyntopo_get(
PointerRNA *ptr)
629 const Brush *br =
static_cast<const Brush *
>(ptr->data);
633static bool rna_BrushCapabilitiesImagePaint_has_accumulate_get(
PointerRNA *ptr)
638 return (
ELEM(br->stroke_method,
645 (br->mtex.tex && !
ELEM(br->mtex.brush_map_mode,
653static bool rna_BrushCapabilitiesImagePaint_has_radius_get(
PointerRNA *ptr)
661static bool rna_BrushCapabilitiesImagePaint_has_space_attenuation_get(
PointerRNA *ptr)
668static bool rna_BrushCapabilitiesImagePaint_has_color_get(
PointerRNA *ptr)
674static bool rna_BrushCapabilitiesVertexPaint_has_color_get(
PointerRNA *ptr)
680static bool rna_BrushCapabilitiesWeightPaint_has_weight_get(
PointerRNA *ptr)
727 rna_Brush_update(bmain, scene, ptr);
745 rna_Brush_update(bmain, scene, ptr);
754 rna_Brush_update(bmain, scene, ptr);
760 rna_Brush_update(bmain, scene, ptr);
766 rna_Brush_update(bmain, scene, ptr);
772 MTex *mtex =
static_cast<MTex *
>(ptr->data);
781static void rna_Brush_set_size(
PointerRNA *ptr,
int value)
790static void rna_Brush_use_gradient_set(
PointerRNA *ptr,
int value)
806static void rna_Brush_set_unprojected_size(
PointerRNA *ptr,
float value)
812 brush->unprojected_size = value;
832 N_(
"Smooth the surface")},
837 N_(
"Enhance the surface detail")},
838 {0,
nullptr, 0,
nullptr,
nullptr},
846 N_(
"Subtract effect of brush")},
851 N_(
"Add effect of brush")},
852 {0,
nullptr, 0,
nullptr,
nullptr},
860 N_(
"Add effect of brush")},
865 N_(
"Subtract effect of brush")},
866 {0,
nullptr, 0,
nullptr,
nullptr},
875 N_(
"Sharpen effect of brush")},
880 N_(
"Blur effect of brush")},
881 {0,
nullptr, 0,
nullptr,
nullptr},
891 N_(
"Subtract effect of brush")},
892 {0,
nullptr, 0,
nullptr,
nullptr},
899 N_(
"Add effect of brush")},
904 N_(
"Subtract effect of brush")},
905 {0,
nullptr, 0,
nullptr,
nullptr},
912 switch (me->sculpt_brush_type) {
924 return prop_smooth_direction_items;
938 return prop_pinch_magnify_items;
941 return prop_inflate_deflate_items;
949 switch (me->image_brush_type) {
951 return prop_soften_sharpen_items;
957 switch (me->curves_sculpt_brush_type) {
966 switch (me->gpencil_sculpt_brush_type) {
971 return prop_twist_items;
973 return prop_pinch_items;
978 switch (me->gpencil_weight_brush_type) {
1002 "Limit brush application to the distance specified by spacing"},
1007 "Keep applying paint effect while holding mouse (spray)"},
1012 "Draw a line with dabs separated according to spacing"},
1017 "Define the stroke curve with a Bézier curve. Dabs are separated according to spacing."},
1018 {0,
nullptr, 0,
nullptr,
nullptr},
1028 return brush_stroke_method_items;
1033static std::optional<std::string> rna_BrushGpencilSettings_path(
const PointerRNA * )
1035 return "gpencil_settings";
1040 Brush *br =
reinterpret_cast<Brush *
>(ptr->owner_id);
1078 return (ma->gp_style !=
nullptr);
1081static bool rna_GPencilBrush_pin_mode_get(
PointerRNA *ptr)
1084 if ((
brush !=
nullptr) && (
brush->gpencil_settings !=
nullptr)) {
1090static void rna_GPencilBrush_pin_mode_set(
PointerRNA * ,
bool )
1098 if ((
brush !=
nullptr) && (
brush->gpencil_settings !=
nullptr)) {
1105 brush->gpencil_settings->brush_draw_mode = GPENCIL_USE_VERTEX_COLOR(ts) ?
1113static void rna_BrushCurvesSculptSettings_update(
Main * ,
1117 Brush *br =
reinterpret_cast<Brush *
>(ptr->owner_id);
1126 static const EnumPropertyItem rna_enum_brush_texture_slot_map_texture_mode_items[] = {
1132 {0,
nullptr, 0,
nullptr,
nullptr},
1139# define rna_enum_brush_texture_slot_map_sculpt_mode_items \
1140 rna_enum_brush_texture_slot_map_all_mode_items;
1144 return rna_enum_brush_texture_slot_map_sculpt_mode_items;
1146 return rna_enum_brush_texture_slot_map_texture_mode_items;
1148# undef rna_enum_brush_texture_slot_map_sculpt_mode_items
1151static std::optional<std::string> rna_BrushCurvesSculptSettings_path(
const PointerRNA * )
1153 return "curves_sculpt_settings";
1172 {0,
nullptr, 0,
nullptr,
nullptr},
1175# define TEXTURE_CAPABILITY(prop_name_, ui_name_) \
1176 prop = RNA_def_property(srna, #prop_name_, PROP_BOOLEAN, PROP_NONE); \
1177 RNA_def_property_clear_flag(prop, PROP_EDITABLE); \
1178 RNA_def_property_boolean_funcs(prop, "rna_TextureCapabilities_" #prop_name_ "_get", nullptr); \
1179 RNA_def_property_ui_text(prop, ui_name_, nullptr)
1184 srna,
"Brush Texture Slot",
"Texture slot for textures in a Brush data-block");
1230# undef TEXTURE_CAPABILITY
1242 "Sculpt Capabilities",
1243 "Read-only indications of which brush operations "
1244 "are supported by the current sculpt tool");
1246# define SCULPT_BRUSH_CAPABILITY(prop_name_, ui_name_) \
1247 prop = RNA_def_property(srna, #prop_name_, PROP_BOOLEAN, PROP_NONE); \
1248 RNA_def_property_clear_flag(prop, PROP_EDITABLE); \
1249 RNA_def_property_boolean_funcs( \
1250 prop, "rna_BrushCapabilitiesSculpt_" #prop_name_ "_get", nullptr); \
1251 RNA_def_property_ui_text(prop, ui_name_, nullptr)
1283# undef SCULPT_CAPABILITY
1295 srna,
"Brush Capabilities",
"Read-only indications of supported operations");
1297# define BRUSH_CAPABILITY(prop_name_, ui_name_) \
1298 prop = RNA_def_property(srna, #prop_name_, PROP_BOOLEAN, PROP_NONE); \
1299 RNA_def_property_clear_flag(prop, PROP_EDITABLE); \
1300 RNA_def_property_boolean_funcs(prop, "rna_BrushCapabilities_" #prop_name_ "_get", nullptr); \
1301 RNA_def_property_ui_text(prop, ui_name_, nullptr)
1308# undef BRUSH_CAPABILITY
1316 srna =
RNA_def_struct(brna,
"BrushCapabilitiesImagePaint",
nullptr);
1320 srna,
"Image Paint Capabilities",
"Read-only indications of supported operations");
1322# define IMAPAINT_BRUSH_CAPABILITY(prop_name_, ui_name_) \
1323 prop = RNA_def_property(srna, #prop_name_, PROP_BOOLEAN, PROP_NONE); \
1324 RNA_def_property_clear_flag(prop, PROP_EDITABLE); \
1325 RNA_def_property_boolean_funcs( \
1326 prop, "rna_BrushCapabilitiesImagePaint_" #prop_name_ "_get", nullptr); \
1327 RNA_def_property_ui_text(prop, ui_name_, nullptr)
1334# undef IMAPAINT_BRUSH_CAPABILITY
1342 srna =
RNA_def_struct(brna,
"BrushCapabilitiesVertexPaint",
nullptr);
1346 srna,
"Vertex Paint Capabilities",
"Read-only indications of supported operations");
1348# define VPAINT_BRUSH_CAPABILITY(prop_name_, ui_name_) \
1349 prop = RNA_def_property(srna, #prop_name_, PROP_BOOLEAN, PROP_NONE); \
1350 RNA_def_property_clear_flag(prop, PROP_EDITABLE); \
1351 RNA_def_property_boolean_funcs( \
1352 prop, "rna_BrushCapabilitiesVertexPaint_" #prop_name_ "_get", nullptr); \
1353 RNA_def_property_ui_text(prop, ui_name_, nullptr)
1357# undef VPAINT_BRUSH_CAPABILITY
1365 srna =
RNA_def_struct(brna,
"BrushCapabilitiesWeightPaint",
nullptr);
1369 srna,
"Weight Paint Capabilities",
"Read-only indications of supported operations");
1371# define WPAINT_BRUSH_CAPABILITY(prop_name_, ui_name_) \
1372 prop = RNA_def_property(srna, #prop_name_, PROP_BOOLEAN, PROP_NONE); \
1373 RNA_def_property_clear_flag(prop, PROP_EDITABLE); \
1374 RNA_def_property_boolean_funcs( \
1375 prop, "rna_BrushCapabilitiesWeightPaint_" #prop_name_ "_get", nullptr); \
1376 RNA_def_property_ui_text(prop, ui_name_, nullptr)
1380# undef WPAINT_BRUSH_CAPABILITY
1392 ICON_GP_DRAW_STROKE,
1394 "Painting affects only strokes, not fills"},
1399 "Painting affects only fills, not strokes"},
1404 "Painting affects both strokes and fills"},
1405 {0,
nullptr, 0,
nullptr,
nullptr},
1408 static const EnumPropertyItem rna_enum_gpencil_brush_caps_types_items[] = {
1411 {0,
nullptr, 0,
nullptr,
nullptr},
1414 static const EnumPropertyItem rna_enum_gpencil_brush_stroke_type_items[] = {
1418 {0,
nullptr, 0,
nullptr,
nullptr},
1432 prop,
"Strength",
"Color strength for new strokes (affect alpha factor of color)");
1452 prop,
"Pressure Randomness",
"Randomness factor for pressure in new strokes");
1461 prop,
"Strength Randomness",
"Randomness factor strength in new strokes");
1471 "Direction of the stroke at which brush gives maximal thickness "
1483 "Reduce brush thickness by this factor when stroke is perpendicular to 'Angle' direction");
1495 "Amount of smoothing to apply after finish newly created strokes, to reduce jitter/noise");
1514 "Subdivision Steps",
1515 "Number of times to subdivide newly created strokes, for less jagged strokes");
1535 "Threshold in screen space used for the simplify algorithm. Points within this threshold "
1536 "are treated as if they were in a straight line.");
1609 prop,
"Threshold",
"Threshold to consider color transparent for filling");
1620 "Factor for fill boundary accuracy, higher values are more accurate but slower");
1629 prop,
"Simplify",
"Number of simplify steps (large values reduce fill accuracy)");
1648 "Gradient from the center of Dot and Box strokes (set to 1 for a solid stroke)");
1668 "Generated intermediate points for very fast mouse movements (Set to 0 to disable)");
1710 prop,
"Vertex Color Factor",
"Factor used to mix vertex color to get final color");
1746 prop,
"Closure Size",
"Strokes end extension for closing gaps, use zero to disable");
1754 prop,
"Closure Mode",
"Types of stroke extensions used for closing gaps");
1765 prop,
"Dilate/Contract",
"Number of pixels to expand or contract fill area");
1775 prop,
"Thickness",
"Thickness of the outline stroke relative to current brush thickness");
1800 prop,
"Use Pressure Strength",
"Use tablet pressure for color strength");
1914 "Draw lines with a delay to allow smooth strokes (press Shift key to "
1915 "override while drawing)");
1975 "Gap Detection Factor",
1976 "The sensitivity of the gap detection. Higher values results in more "
1977 "gaps detected and as such can create smaller fills");
1983 prop,
"rna_GPencilBrush_pin_mode_get",
"rna_GPencilBrush_pin_mode_set");
2022 prop,
"Affect Strength",
"The brush affects the color strength of the point");
2030 prop,
"Affect Thickness",
"The brush affects the thickness of the point");
2044 prop,
nullptr,
nullptr,
nullptr,
"rna_BrushGpencilSettings_material_poll");
2054 prop,
nullptr,
nullptr,
nullptr,
"rna_BrushGpencilSettings_material_poll");
2078 prop,
"Strokes Collision",
"Check if extend lines collide with strokes");
2085 prop,
"Show Fill",
"Show transparent lines to use as boundary for filling");
2093 "Auto-Remove Fill Guides",
2094 "Automatically remove fill guide strokes after fill operation");
2122 prop,
"Use Post-Process Settings",
"Additional post processing options for new strokes");
2139 prop,
NC_GPENCIL |
ND_DATA,
"rna_BrushGpencilSettings_use_material_pin_update");
2156 prop,
"Keep Caps",
"Keep the caps as they are and don't flatten them when erasing");
2177 "Either add or remove curves depending on the minimum distance of the curves under the "
2183 "Add new curves between existing curves, taking the minimum distance into account"},
2188 "Remove curves whose root points are too close"},
2189 {0,
nullptr, 0,
nullptr,
nullptr},
2192 srna =
RNA_def_struct(brna,
"BrushCurvesSculptSettings",
nullptr);
2205 prop,
"Points per Curve",
"Number of control points in a newly added curve");
2212 "Grow or shrink curves by changing their size uniformly instead of "
2213 "using trimming or extrapolation");
2219 prop,
"Minimum Length",
"Avoid shrinking curves shorter than this length");
2225 prop,
"Interpolate Length",
"Use length of the curves in close proximity");
2233 prop,
"Interpolate Radius",
"Use radius of the curves in close proximity");
2240 "Interpolate Point Count",
2241 "Use the number of points from the curves in close proximity");
2247 prop,
"Interpolate Shape",
"Use shape of the curves in close proximity");
2255 "Length of newly added curves when it is not interpolated from other curves");
2262 prop,
"Minimum Distance",
"Goal distance between curve roots for the Density brush");
2272 "Radius of newly added curves when it is not interpolated from other curves");
2278 prop,
"Density Add Attempts",
"How many times the Density brush tries to add a new curve");
2284 prop,
"Density Mode",
"Determines whether the brush adds or removes curves");
2291 "Curve Parameter Falloff",
2292 "Falloff that is applied from the tip to the root of each curve");
2302 {
IMB_BLEND_MIX,
"MIX", 0,
"Mix",
"Use Mix blending mode while painting"},
2304 {
IMB_BLEND_DARKEN,
"DARKEN", 0,
"Darken",
"Use Darken blending mode while painting"},
2305 {
IMB_BLEND_MUL,
"MUL", 0,
"Multiply",
"Use Multiply blending mode while painting"},
2310 "Use Color Burn blending mode while painting"},
2315 "Use Linear Burn blending mode while painting"},
2317 {
IMB_BLEND_LIGHTEN,
"LIGHTEN", 0,
"Lighten",
"Use Lighten blending mode while painting"},
2318 {
IMB_BLEND_SCREEN,
"SCREEN", 0,
"Screen",
"Use Screen blending mode while painting"},
2323 "Use Color Dodge blending mode while painting"},
2324 {
IMB_BLEND_ADD,
"ADD", 0,
"Add",
"Use Add blending mode while painting"},
2326 {
IMB_BLEND_OVERLAY,
"OVERLAY", 0,
"Overlay",
"Use Overlay blending mode while painting"},
2331 "Use Soft Light blending mode while painting"},
2336 "Use Hard Light blending mode while painting"},
2341 "Use Vivid Light blending mode while painting"},
2346 "Use Linear Light blending mode while painting"},
2351 "Use Pin Light blending mode while painting"},
2357 "Use Difference blending mode while painting"},
2362 "Use Exclusion blending mode while painting"},
2363 {
IMB_BLEND_SUB,
"SUB", 0,
"Subtract",
"Use Subtract blending mode while painting"},
2365 {
IMB_BLEND_HUE,
"HUE", 0,
"Hue",
"Use Hue blending mode while painting"},
2370 "Use Saturation blending mode while painting"},
2371 {
IMB_BLEND_COLOR,
"COLOR", 0,
"Color",
"Use Color blending mode while painting"},
2376 {0,
nullptr, 0,
nullptr,
nullptr},
2385 {0,
nullptr, 0,
nullptr,
nullptr},
2391 {0,
nullptr, 0,
nullptr,
nullptr},
2397 {0,
nullptr, 0,
nullptr,
nullptr},
2404 {0,
nullptr, 0,
nullptr,
nullptr},
2410 {0,
nullptr, 0,
nullptr,
nullptr},
2414 {0,
"NONE", 0,
"Off",
""},
2417 {0,
nullptr, 0,
nullptr,
nullptr},
2421 {0,
"VIEW", 0,
"View",
"Measure brush size relative to the view"},
2422 {
BRUSH_LOCK_SIZE,
"SCENE", 0,
"Scene",
"Measure brush size relative to the scene"},
2423 {0,
nullptr, 0,
nullptr,
nullptr},
2427 {0,
"COLOR", 0,
"Color",
"Paint with a single color"},
2429 {0,
nullptr, 0,
nullptr,
nullptr},
2433 {0,
"VIEW", 0,
"View",
"Calculate brush spacing relative to the view"},
2438 "Calculate brush spacing relative to the scene using the stroke location"},
2439 {0,
nullptr, 0,
nullptr,
nullptr},
2444 {0,
"BRUSH", 0,
"Brush",
"Jittering happens relative to the brush size"},
2445 {0,
nullptr, 0,
nullptr,
nullptr},
2449 {0,
"SPHERE", 0,
"Sphere",
"Apply brush influence in a Sphere, outwards from the center"},
2454 "Apply brush influence in a 2D circle, projected from the view"},
2455 {0,
nullptr, 0,
nullptr,
nullptr},
2463 "Brush deformation displaces the vertices of the mesh"},
2468 "Brush deforms the mesh by deforming the constraints of a cloth simulation"},
2469 {0,
nullptr, 0,
nullptr,
nullptr},
2478 {0,
nullptr, 0,
nullptr,
nullptr},
2486 "Applies the brush falloff in the tip of the brush"},
2491 "Modifies the entire mesh using elastic deform"},
2492 {0,
nullptr, 0,
nullptr,
nullptr},
2497 "INVERT_DISPLACEMENT",
2499 "Invert Displacement",
2500 "Displace the vertices away from the plane."},
2502 "SWAP_DEPTH_AND_HEIGHT",
2504 "Swap Height and Depth",
2505 "Swap the roles of Height and Depth."},
2506 {0,
nullptr, 0,
nullptr,
nullptr},
2514 "Project the vertices along the view normal."},
2519 "Project the vertices along the plane normal."},
2520 {0,
nullptr, 0,
nullptr,
nullptr},
2528 "PINCH_PERPENDICULAR",
2530 "Pinch Perpendicular",
2536 {0,
nullptr, 0,
nullptr,
nullptr},
2542 {0,
nullptr, 0,
nullptr,
nullptr},
2550 "Applies the same deformation in the entire boundary"},
2555 "Applies the deformation in a localized area limited by the brush radius"},
2560 "Applies the brush falloff in a loop pattern"},
2565 "Applies the falloff radius in a loop pattern, inverting the displacement direction in "
2566 "each pattern repetition"},
2567 {0,
nullptr, 0,
nullptr,
nullptr},
2575 "Simulates only a specific area around the brush limited by a fixed radius"},
2581 "The active simulation area moves with the brush"},
2582 {0,
nullptr, 0,
nullptr,
nullptr},
2590 "Smooths the surface and the volume"},
2595 "Smooths the surface of the mesh, preserving the volume"},
2596 {0,
nullptr, 0,
nullptr,
nullptr},
2603 {0,
nullptr, 0,
nullptr,
nullptr},
2611 "Sets the rotation origin automatically using the topology and shape of the mesh as a "
2617 "Creates a pose segment per face set, starting from the active face set"},
2622 "Simulates an FK deformation using the face set under the cursor as control"},
2623 {0,
nullptr, 0,
nullptr,
nullptr},
2630 {0,
nullptr, 0,
nullptr,
nullptr},
2637 {0,
nullptr, 0,
nullptr,
nullptr},
2647 {0,
nullptr, 0,
nullptr,
nullptr},
2652 srna,
"Brush",
"Brush data-block for storing brush settings for painting and sculpting");
2658 "Has unsaved changes",
2659 "Indicates that there are any user visible changes since the brush has "
2660 "been imported or read from the file");
2776 prop,
"Deformation Target",
"How the deformation of the brush will affect the object");
2807 "Minimum distance to other scene objects after projecting onto them");
2819 prop,
"Force Falloff",
"Shape used in the brush to apply force to the cloth");
2827 "Part of the mesh that is going to be simulated when the stroke is active");
2833 prop,
"Boundary Falloff",
"How the brush falloff is applied across the boundary");
2868 "Method to set the rotation origins for the segments of the brush");
2875 prop,
"Jitter Unit",
"Jitter in screen space or relative to brush size");
2906 "Number of input samples to average together to smooth the brush stroke");
2921 prop,
"Jitter",
"Jitter the position of the brush in pixels while painting");
2930 prop,
"Spacing",
"Spacing between brush daubs as a percentage of brush diameter");
2938 prop,
"Gradient Spacing",
"Spacing before brush gradient goes full circle");
3035 prop,
"Pressure Size Mapping",
"Curve used to map pressure to brush size");
3043 prop,
"Pressure Strength Mapping",
"Curve used to map pressure to brush strength");
3051 prop,
"Pressure Jitter Mapping",
"Curve used to map pressure to brush jitter");
3059 prop,
"Pressure Hardness Mapping",
"Curve used to map pressure to brush hardness");
3067 prop,
"Pressure Auto-Smooth Mapping",
"Curve used to map pressure to brush auto-smooth");
3075 prop,
"Pressure Spacing Mapping",
"Curve used to map pressure to brush spacing");
3082 prop,
"Smooth Stroke Radius",
"Minimum distance from last point before stroke continues");
3120 prop,
"Strength",
"How powerful the effect of the brush is when applied");
3135 prop,
"Wet Mix",
"Amount of paint that is picked from the surface into the brush color");
3145 "Amount of wet paint that stays in the brush after applying paint to the surface");
3153 prop,
"Density",
"Amount of random elements that are going to be affected by the brush");
3174 prop,
"Invert Pressure for Hardness",
"Invert the modulation of pressure in hardness");
3190 prop,
"Invert Pressure for Flow",
"Invert the modulation of pressure in flow");
3205 prop,
"Invert Pressure for Wet Mix",
"Invert the modulation of pressure in wet mix");
3214 prop,
"Use Pressure for Wet Persistence",
"Use pressure to modulate wet persistence");
3223 "Invert Pressure for Wet Persistence",
3224 "Invert the modulation of pressure in wet persistence");
3239 prop,
"Invert Pressure for Density",
"Invert the modulation of pressure in density");
3248 prop,
"Dash Ratio",
"Ratio of samples in a cycle that the brush is enabled");
3256 prop,
"Dash Length",
"Length of a dash cycle measured in stroke samples");
3267 "Adjust plane on which the brush acts towards or away from the object surface");
3276 "If a vertex is further away from offset plane than this, then it is not affected");
3287 "Affectable height of brush (i.e. the layer height for the layer tool)");
3297 "The maximum distance below the plane for affected vertices. "
3298 "Increasing the depth affects vertices farther below the plane.");
3308 "The maximum distance above the plane for affected vertices. "
3309 "Increasing the height affects vertices farther above the plane.");
3319 "How stable the plane normal is over the course of the stroke. "
3320 "A value of 0 corresponds to using the current normal, "
3321 "and a value of 1 corresponds to using the initial normal.");
3331 "How stable the plane center is over the course of the stroke. "
3332 "A value of 0 corresponds to using the current center, "
3333 "and a value of 1 corresponds to using the initial center.");
3347 "Vector Displacement",
3348 "Handle each pixel color as individual vector for displacement (area plane mapping only)");
3356 prop,
"Normal Weight",
"How much grab will pull vertices out of surface during a grab");
3364 "Volume Preservation",
3365 "Poisson ratio for elastic deformation. Higher values preserve volume "
3366 "more, but also lead to more bulging.");
3387 prop,
"Pose Origin Offset",
"Offset of the pose origin in relation to the brush radius");
3394 "Max Element Distance",
3395 "Maximum distance to search for disconnected loose parts in the mesh");
3402 "Boundary Origin Offset",
3403 "Offset of the boundary origin in relation to the brush radius");
3410 prop,
"Shape Preservation",
"How much of the original shape is preserved when smoothing");
3418 "Per Vertex Displacement",
3419 "How much the position of each individual vertex influences the final result");
3440 "Smooth Iterations",
3441 "Smooth iterations applied after calculating the pose factor of each vertex");
3451 "Number of segments of the inverse kinematics chain that will deform the mesh");
3470 prop,
"Cloth Damping",
"How much the applied forces are propagated through the cloth");
3479 "Factor added relative to the size of the radius to limit the cloth simulation effects");
3486 "Simulation Falloff",
3487 "Area to apply deformation falloff to the effects of the simulation");
3495 "Soft Body Plasticity",
3496 "How much the cloth preserves the original shape, acting as a soft body");
3503 prop,
"Hardness",
"How close the brush falloff starts from the edge of the brush");
3512 prop,
"Auto-Smooth",
"Amount of smoothing to automatically apply to each stroke");
3522 "Automatically align edges to the brush direction to "
3523 "generate cleaner topology and define sharp features. "
3524 "Best used on low-poly meshes as it has a performance impact.");
3534 "How much the tilt of the pen will affect the brush. Negative values "
3535 "indicate inverting the tilt directions.");
3544 "Ratio between the brush radius and the radius that is going to be "
3545 "used to sample the normal");
3554 "Ratio between the brush radius and the radius that is going to be "
3555 "used to sample the area center");
3564 "Ratio between the brush radius and the radius that is going to be "
3565 "used to sample the color to blend in wet paint");
3590 prop,
"Mask Stencil Dimensions",
"Dimensions of mask stencil in viewport");
3598 prop,
"Sharp Threshold",
"Threshold below which, no sharpening is done");
3606 prop,
"Fill Threshold",
"Threshold above which filling is not propagated");
3614 prop,
"Kernel Radius",
"Radius of kernel used for soften and sharpen in pixels");
3629 "Paint most on faces pointing towards the view according to this angle");
3637 "When locked keep using normal of surface where stroke was initiated");
3645 "When locked keep using the plane origin of surface where stroke was initiated");
3652 prop,
"Spacing Distance",
"Calculate the brush spacing using view or scene distance");
3659 "Grab Active Vertex",
3660 "Apply the maximum grab strength to the active vertex instead of the cursor location");
3666 prop,
"Grab Silhouette",
"Grabs trying to automask the silhouette of the object");
3678 "The angle between the planes changes during the stroke to fit the "
3679 "surface under the cursor");
3685 prop,
"Show Cursor Preview",
"Preview the scrape planes in the cursor during the stroke");
3691 prop,
"Keep Anchor Point",
"Keep the position of the last segment in the IK chain fixed");
3697 "Lock Rotation When Scaling",
3698 "Do not rotate the segment when using the scale deform mode");
3710 "Pin Simulation Boundary",
3711 "Lock the position of the vertices in the simulation falloff area to avoid artifacts and "
3712 "create a softer transition with unaffected areas");
3723 "Invert to Scrape or Fill",
3724 "Use Scrape or Fill brush when inverting this brush instead of "
3725 "inverting its displacement direction");
3732 prop,
"Strength Pressure",
"Enable tablet pressure sensitivity for strength");
3739 prop,
"Plane Offset Pressure",
"Enable tablet pressure sensitivity for offset");
3746 prop,
"Area Radius Pressure",
"Enable tablet pressure sensitivity for area radius");
3759 prop,
"Jitter Pressure",
"Enable tablet pressure sensitivity for jitter");
3766 prop,
"Spacing Pressure",
"Enable tablet pressure sensitivity for spacing");
3773 prop,
"Mask Pressure Mode",
"Pen pressure makes texture influence smaller");
3787 "Limit the distance from the offset plane that a vertex can be affected");
3793 prop,
"Use Front-Face",
"Brush only affects vertices that face the viewer");
3800 prop,
"Use Front-Face Falloff",
"Blend brush influence by how much they face the front");
3806 prop,
"Smooth Stroke",
"Brush lags behind mouse and follows a smoother path");
3818 "Project vertices both along the projection direction and its "
3819 "inverse, choosing the closest intersection.");
3831 "Adjust Strength for Spacing",
3832 "Automatically adjust strength to give consistent results for different spacings");
3840 "Space daubs according to surface orientation instead of screen space");
3847 prop,
"Size Unit",
"Measure brush size relative to the view or the scene");
3866 prop,
"Affect Alpha",
"When this is disabled, lock alpha while painting");
3964 prop,
"Use Vertex",
"Use this brush in Grease Pencil vertex color mode");
4038 prop,
"rna_Sculpt_brush_capabilities_get",
nullptr,
nullptr,
nullptr);
4045 prop,
"rna_Imapaint_brush_capabilities_get",
nullptr,
nullptr,
nullptr);
4052 prop,
"rna_Vertexpaint_brush_capabilities_get",
nullptr,
nullptr,
nullptr);
4059 prop,
"rna_Weightpaint_brush_capabilities_get",
nullptr,
nullptr,
nullptr);
4106 prop,
"Use Unified Input Samples",
"Use shared input samples for this brush");
4125 srna =
RNA_def_struct(brna,
"OperatorStrokeElement",
"PropertyGroup");
Low-level operations for grease pencil.
General operations, lookup, etc. for materials.
#define BLI_STR_UTF8_DEGREE_SIGN
#define BLT_I18NCONTEXT_AMOUNT
#define CTX_N_(context, msgid)
#define BLT_I18NCONTEXT_ID_BRUSH
#define BLT_I18NCONTEXT_ID_CURVES
#define BLT_I18NCONTEXT_ID_CURVE_LEGACY
#define BLT_I18NCONTEXT_ID_GPENCIL
#define BLT_I18NCONTEXT_OPERATOR_DEFAULT
#define BLT_I18NCONTEXT_ID_MASK
#define BLT_I18NCONTEXT_COLOR
#define MAX_BRUSH_PIXEL_DIAMETER
#define GPENCIL_MIN_FILL_FAC
#define GP_MAX_INPUT_SAMPLES
#define GPENCIL_MAX_FILL_FAC
#define PAINT_MAX_INPUT_SAMPLES
#define RNA_ENUM_ITEM_SEPR
#define ND_SPACE_PROPERTIES
bool supports_sculpt_plane(const Brush &brush)
bool supports_secondary_cursor_color(const Brush &brush)
bool supports_auto_smooth(const Brush &brush)
bool supports_jitter(const Brush &brush)
bool supports_space_attenuation(const Brush &brush)
bool supports_size_pressure(const Brush &brush)
bool supports_persistence(const Brush &brush)
bool supports_tilt(const Brush &brush)
bool supports_inverted_direction(const Brush &brush)
bool supports_hardness(const Brush &brush)
bool supports_auto_smooth_pressure(const Brush &brush)
bool supports_rake_factor(const Brush &brush)
bool supports_plane_depth(const Brush &brush)
bool supports_accumulate(const Brush &brush)
bool supports_gravity(const Brush &brush)
bool supports_hardness_pressure(const Brush &brush)
bool supports_smooth_stroke(const Brush &brush)
bool supports_plane_offset(const Brush &brush)
bool supports_pinch_factor(const Brush &brush)
bool supports_normal_radius(const Brush &brush)
bool supports_color(const Brush &brush)
bool supports_random_texture_angle(const Brush &brush)
bool supports_strength_pressure(const Brush &brush)
bool supports_dyntopo(const Brush &brush)
bool supports_height(const Brush &brush)
bool supports_topology_rake(const Brush &brush)
bool supports_plane_height(const Brush &brush)
bool supports_normal_weight(const Brush &brush)
bool supports_tip_roundness(const Brush &brush)
void invalidate_overlay_all(Scene &scene)
void invalidate_overlay_tex(Scene &scene, const Tex *tex)
static const EnumPropertyItem prop_direction_items[]
void WM_main_add_notifier(uint type, void *reference)
BLI_assert(slot->slot_subtype.map==BMO_OP_SLOT_SUBTYPE_MAP_FLT)
void RNA_def_struct_ui_text(StructRNA *srna, const char *name, const char *description)
@ BRUSH_BOUNDARY_DEFORM_GRAB
@ BRUSH_BOUNDARY_DEFORM_SMOOTH
@ BRUSH_BOUNDARY_DEFORM_TWIST
@ BRUSH_BOUNDARY_DEFORM_EXPAND
@ BRUSH_BOUNDARY_DEFORM_BEND
@ BRUSH_BOUNDARY_DEFORM_INFLATE
void RNA_def_brush(BlenderRNA *brna)
void RNA_def_property_ui_text(PropertyRNA *prop, const char *name, const char *description)
void RNA_def_property_deprecated(PropertyRNA *prop, const char *note, const short version, const short removal_version)
const EnumPropertyItem rna_enum_shared_automasking_flag_items[]
const EnumPropertyItem rna_enum_brush_gpencil_weight_types_items[]
void RNA_def_struct_ui_icon(StructRNA *srna, int icon)
static void rna_def_gpencil_options(BlenderRNA *brna)
Object * BKE_view_layer_active_object_get(const ViewLayer *view_layer)
void RNA_def_property_boolean_negative_sdna(PropertyRNA *prop, const char *structname, const char *propname, int64_t booleanbit)
@ GP_BRUSH_MODE_VERTEXCOLOR
@ GPWEIGHT_BRUSH_TYPE_SMEAR
@ GPWEIGHT_BRUSH_TYPE_DRAW
@ GPWEIGHT_BRUSH_TYPE_BLUR
@ GPWEIGHT_BRUSH_TYPE_AVERAGE
static EnumPropertyItem rna_enum_gpencil_fill_draw_modes_items[]
void RNA_def_property_float_funcs(PropertyRNA *prop, const char *get, const char *set, const char *range)
void RNA_def_property_pointer_sdna(PropertyRNA *prop, const char *structname, const char *propname)
static void rna_def_image_paint_capabilities(BlenderRNA *brna)
void RNA_def_property_pointer_funcs(PropertyRNA *prop, const char *get, const char *set, const char *type_fn, const char *poll)
@ BRUSH_GRADIENT_SPACING_CLAMP
@ BRUSH_GRADIENT_SPACING_REPEAT
@ BRUSH_GRADIENT_PRESSURE
@ BRUSH_SNAKE_HOOK_DEFORM_ELASTIC
@ BRUSH_SNAKE_HOOK_DEFORM_FALLOFF
@ BRUSH_SLIDE_DEFORM_EXPAND
@ BRUSH_SLIDE_DEFORM_DRAG
@ BRUSH_SLIDE_DEFORM_PINCH
Material * BKE_object_material_get(Object *ob, short act)
void RNA_def_property_boolean_funcs(PropertyRNA *prop, const char *get, const char *set)
@ BRUSH_COLOR_JITTER_USE_SAT_RAND_PRESS
@ BRUSH_COLOR_JITTER_USE_HUE_AT_STROKE
@ BRUSH_COLOR_JITTER_USE_VAL_AT_STROKE
@ BRUSH_COLOR_JITTER_USE_HUE_RAND_PRESS
@ BRUSH_COLOR_JITTER_USE_SAT_AT_STROKE
@ BRUSH_COLOR_JITTER_USE_VAL_RAND_PRESS
@ PAINT_FALLOFF_SHAPE_TUBE
const EnumPropertyItem rna_enum_curves_type_items[]
@ WPAINT_BRUSH_TYPE_AVERAGE
@ WPAINT_BRUSH_TYPE_SMEAR
const EnumPropertyItem rna_enum_brush_gpencil_types_items[]
static void rna_def_sculpt_capabilities(BlenderRNA *brna)
ColorBand * BKE_colorband_add(bool rangetype)
@ BRUSH_PLANE_INVERT_DISPLACEMENT
@ BRUSH_PLANE_SWAP_HEIGHT_AND_DEPTH
void RNA_def_property_struct_type(PropertyRNA *prop, const char *type)
@ BRUSH_MULTIPLANE_SCRAPE_PLANES_PREVIEW
@ BRUSH_MULTIPLANE_SCRAPE_DYNAMIC
@ BRUSH_USE_COLOR_AS_DISPLACEMENT
@ BRUSH_PROJECT_USE_BIDIRECTIONAL
@ BRUSH_USE_CONNECTED_ONLY
@ BRUSH_CLOTH_USE_COLLISION
@ BRUSH_POSE_USE_LOCK_ROTATION
@ BRUSH_AREA_RADIUS_PRESSURE
@ BRUSH_CLOTH_PIN_SIMULATION_BOUNDARY
@ BRUSH_SMOOTH_DEFORM_LAPLACIAN
@ BRUSH_SMOOTH_DEFORM_SURFACE
static EnumPropertyItem rna_enum_gpencil_fill_extend_modes_items[]
void BKE_brush_scale_size(int *r_brush_size, float new_unprojected_size, float old_unprojected_size)
@ GP_FILL_SOLVER_DELAUNAY
void RNA_def_struct_nested(BlenderRNA *brna, StructRNA *srna, const char *structname)
@ BRUSH_BOUNDARY_FALLOFF_LOOP
@ BRUSH_BOUNDARY_FALLOFF_CONSTANT
@ BRUSH_BOUNDARY_FALLOFF_RADIUS
@ BRUSH_BOUNDARY_FALLOFF_LOOP_INVERT
static void rna_def_brush_texture_slot(BlenderRNA *brna)
@ BRUSH_CLOTH_DEFORM_PUSH
@ BRUSH_CLOTH_DEFORM_EXPAND
@ BRUSH_CLOTH_DEFORM_INFLATE
@ BRUSH_CLOTH_DEFORM_SNAKE_HOOK
@ BRUSH_CLOTH_DEFORM_DRAG
@ BRUSH_CLOTH_DEFORM_GRAB
@ BRUSH_CLOTH_DEFORM_PINCH_POINT
@ BRUSH_CLOTH_DEFORM_PINCH_PERPENDICULAR
static EnumPropertyItem rna_enum_gpencil_fill_solver_items[]
void RNA_def_property_enum_bitflag_sdna(PropertyRNA *prop, const char *structname, const char *propname)
ViewLayer * CTX_data_view_layer(const bContext *C)
void RNA_def_property_ui_range(PropertyRNA *prop, double min, double max, double step, int precision)
@ BRUSH_CURVES_SCULPT_FLAG_SCALE_UNIFORM
@ BRUSH_CURVES_SCULPT_FLAG_INTERPOLATE_RADIUS
@ BRUSH_CURVES_SCULPT_FLAG_INTERPOLATE_LENGTH
@ BRUSH_CURVES_SCULPT_FLAG_INTERPOLATE_POINT_COUNT
@ BRUSH_CURVES_SCULPT_FLAG_INTERPOLATE_SHAPE
void RNA_def_property_float_sdna(PropertyRNA *prop, const char *structname, const char *propname)
@ SCULPT_BRUSH_TYPE_INFLATE
@ SCULPT_BRUSH_TYPE_SMEAR
@ SCULPT_BRUSH_TYPE_CLOTH
@ SCULPT_BRUSH_TYPE_SIMPLIFY
@ SCULPT_BRUSH_TYPE_SMOOTH
@ SCULPT_BRUSH_TYPE_CLAY_STRIPS
@ SCULPT_BRUSH_TYPE_CREASE
@ SCULPT_BRUSH_TYPE_DRAW_FACE_SETS
@ SCULPT_BRUSH_TYPE_PAINT
@ SCULPT_BRUSH_TYPE_PLANE
@ SCULPT_BRUSH_TYPE_SLIDE_RELAX
@ SCULPT_BRUSH_TYPE_PINCH
@ SCULPT_BRUSH_TYPE_ROTATE
@ SCULPT_BRUSH_TYPE_LAYER
@ SCULPT_BRUSH_TYPE_DISPLACEMENT_ERASER
@ SCULPT_BRUSH_TYPE_BOUNDARY
@ SCULPT_BRUSH_TYPE_DISPLACEMENT_SMEAR
@ SCULPT_BRUSH_TYPE_DRAW_SHARP
@ SCULPT_BRUSH_TYPE_SNAKE_HOOK
@ SCULPT_BRUSH_TYPE_CLAY_THUMB
@ SCULPT_BRUSH_TYPE_MULTIPLANE_SCRAPE
@ SCULPT_BRUSH_TYPE_SCENE_PROJECT
@ SCULPT_BRUSH_TYPE_THUMB
@ SCULPT_BRUSH_TYPE_NUDGE
@ SCULPT_BRUSH_TYPE_ELASTIC_DEFORM
@ BRUSH_MASK_PRESSURE_CUTOFF
@ BRUSH_MASK_PRESSURE_RAMP
@ GPSCULPT_BRUSH_TYPE_CLONE
@ GPSCULPT_BRUSH_TYPE_PINCH
@ GPSCULPT_BRUSH_TYPE_PUSH
@ GPSCULPT_BRUSH_TYPE_THICKNESS
@ GPSCULPT_BRUSH_TYPE_RANDOMIZE
@ GPSCULPT_BRUSH_TYPE_GRAB
@ GPSCULPT_BRUSH_TYPE_STRENGTH
@ GPSCULPT_BRUSH_TYPE_SMOOTH
@ GPSCULPT_BRUSH_TYPE_TWIST
void RNA_def_property_float_default(PropertyRNA *prop, float value)
void BKE_brush_tag_unsaved_changes(Brush *brush)
@ BRUSH_POSE_DEFORM_SQUASH_STRETCH
@ BRUSH_POSE_DEFORM_SCALE_TRANSLATE
@ BRUSH_POSE_DEFORM_ROTATE_TWIST
@ BRUSH_POSE_ORIGIN_TOPOLOGY
@ BRUSH_POSE_ORIGIN_FACE_SETS_FK
@ BRUSH_POSE_ORIGIN_FACE_SETS
@ BRUSH_ELASTIC_DEFORM_TWIST
@ BRUSH_ELASTIC_DEFORM_GRAB_BISCALE
@ BRUSH_ELASTIC_DEFORM_GRAB
@ BRUSH_ELASTIC_DEFORM_GRAB_TRISCALE
@ BRUSH_ELASTIC_DEFORM_SCALE
const EnumPropertyItem rna_enum_brush_image_brush_type_items[]
PropertyRNA * RNA_def_property(StructOrFunctionRNA *cont_, const char *identifier_c_str, int type, int subtype)
static void rna_def_brush(BlenderRNA *brna)
static const EnumPropertyItem rna_enum_brush_texture_slot_map_all_mode_items[]
@ GP_FILL_GPLMODE_VISIBLE
@ GP_FILL_GPLMODE_ALL_ABOVE
@ GP_FILL_GPLMODE_ALL_BELOW
const EnumPropertyItem rna_enum_brush_gpencil_vertex_types_items[]
@ GPAINT_BRUSH_TYPE_ERASE
void RNA_def_struct_sdna(StructRNA *srna, const char *structname)
void RNA_def_parameter_clear_flags(PropertyRNA *prop, PropertyFlag flag_property, ParameterFlag flag_parameter)
void RNA_def_property_enum_items(PropertyRNA *prop, const EnumPropertyItem *item)
@ BRUSH_PAINT_WET_MIX_PRESSURE_INVERT
@ BRUSH_PAINT_WET_PERSISTENCE_PRESSURE
@ BRUSH_PAINT_FLOW_PRESSURE_INVERT
@ BRUSH_PAINT_DENSITY_PRESSURE
@ BRUSH_PAINT_WET_MIX_PRESSURE
@ BRUSH_PAINT_DENSITY_PRESSURE_INVERT
@ BRUSH_PAINT_WET_PERSISTENCE_PRESSURE_INVERT
@ BRUSH_PAINT_FLOW_PRESSURE
void RNA_def_property_int_funcs(PropertyRNA *prop, const char *get, const char *set, const char *range)
@ BRUSH_PAINT_ANTIALIASING
@ OB_MODE_VERTEX_GREASE_PENCIL
@ OB_MODE_PAINT_GREASE_PENCIL
void BKE_grease_pencil_brush_material_set(struct Brush *brush, struct Material *material)
static void rna_def_weight_paint_capabilities(BlenderRNA *brna)
void RNA_def_property_boolean_sdna(PropertyRNA *prop, const char *structname, const char *propname, int64_t booleanbit)
void RNA_def_property_range(PropertyRNA *prop, double min, double max)
static EnumPropertyItem rna_enum_gpencil_fill_direction_items[]
void RNA_def_struct_path_func(StructRNA *srna, const char *path)
const EnumPropertyItem rna_enum_brush_sculpt_brush_type_items[]
@ IMAGE_PAINT_BRUSH_TYPE_SOFTEN
@ IMAGE_PAINT_BRUSH_TYPE_SMEAR
@ IMAGE_PAINT_BRUSH_TYPE_DRAW
@ IMAGE_PAINT_BRUSH_TYPE_FILL
@ IMAGE_PAINT_BRUSH_TYPE_MASK
@ IMAGE_PAINT_BRUSH_TYPE_CLONE
bool BKE_view_layer_synced_ensure(const Main &bmain, const Scene *scene, ViewLayer *view_layer)
const EnumPropertyItem rna_enum_brush_vertex_brush_type_items[]
@ CURVES_SCULPT_BRUSH_TYPE_COMB
@ CURVES_SCULPT_BRUSH_TYPE_SMOOTH
@ CURVES_SCULPT_BRUSH_TYPE_ADD
@ CURVES_SCULPT_BRUSH_TYPE_SLIDE
@ CURVES_SCULPT_BRUSH_TYPE_DENSITY
@ CURVES_SCULPT_BRUSH_TYPE_PINCH
@ CURVES_SCULPT_BRUSH_TYPE_SNAKE_HOOK
@ CURVES_SCULPT_BRUSH_TYPE_GROW_SHRINK
@ CURVES_SCULPT_BRUSH_TYPE_DELETE
@ CURVES_SCULPT_BRUSH_TYPE_CUT
@ CURVES_SCULPT_BRUSH_TYPE_PUFF
@ CURVES_SCULPT_BRUSH_TYPE_SELECTION_PAINT
ToolSettings * CTX_data_tool_settings(const bContext *C)
const EnumPropertyItem rna_enum_dummy_DEFAULT_items[]
void RNA_def_property_enum_funcs(PropertyRNA *prop, const char *get, const char *set, const char *item)
void BKE_brush_color_sync_legacy(Brush *brush)
static EnumPropertyItem rna_enum_gpencil_brush_modes_items[]
static void rna_def_brush_capabilities(BlenderRNA *brna)
void WM_event_add_notifier(const bContext *C, uint type, void *reference)
void RNA_def_property_enum_sdna(PropertyRNA *prop, const char *structname, const char *propname)
void BKE_brush_scale_unprojected_size(float *unprojected_size, int new_brush_size, int old_brush_size)
void RNA_def_property_boolean_default(PropertyRNA *prop, bool value)
@ BRUSH_AUTOMASKING_VIEW_OCCLUSION
@ BRUSH_AUTOMASKING_TOPOLOGY
@ BRUSH_AUTOMASKING_BRUSH_NORMAL
@ BRUSH_AUTOMASKING_FACE_SETS
@ BRUSH_AUTOMASKING_CAVITY_USE_CURVE
@ BRUSH_AUTOMASKING_BOUNDARY_FACE_SETS
@ BRUSH_AUTOMASKING_BOUNDARY_EDGES
@ BRUSH_AUTOMASKING_VIEW_NORMAL
@ BRUSH_AUTOMASKING_CAVITY_NORMAL
@ BRUSH_AUTOMASKING_CAVITY_INVERTED
void RNA_def_property_translation_context(PropertyRNA *prop, const char *context)
void RNA_def_property_clear_flag(PropertyRNA *prop, PropertyFlag flag)
void RNA_def_property_flag(PropertyRNA *prop, PropertyFlag flag)
@ GPVERTEX_BRUSH_TYPE_REPLACE
@ GPVERTEX_BRUSH_TYPE_BLUR
@ GPVERTEX_BRUSH_TYPE_AVERAGE
@ GPVERTEX_BRUSH_TYPE_SMEAR
@ GPVERTEX_BRUSH_TYPE_DRAW
@ BRUSH_USE_UNIFIED_PAINT_INPUT_SAMPLES
@ BRUSH_USE_UNIFIED_PAINT_WEIGHT
@ BRUSH_USE_UNIFIED_PAINT_SIZE
@ BRUSH_USE_UNIFIED_PAINT_ALPHA
@ BRUSH_USE_UNIFIED_PAINT_COLOR
const EnumPropertyItem rna_enum_brush_weight_brush_type_items[]
static EnumPropertyItem rna_enum_gpencil_fill_layers_modes_items[]
Main * CTX_data_main(const bContext *C)
StructRNA * RNA_def_struct(BlenderRNA *brna, const char *identifier, const char *from)
void RNA_def_property_int_sdna(PropertyRNA *prop, const char *structname, const char *propname)
@ BRUSH_DEFORM_TARGET_CLOTH_SIM
@ BRUSH_DEFORM_TARGET_GEOMETRY
static void rna_def_vertex_paint_capabilities(BlenderRNA *brna)
@ BRUSH_PROJECT_RAY_DIRECTION_PLANE_NORMAL
@ BRUSH_PROJECT_RAY_DIRECTION_VIEW_NORMAL
void RNA_def_property_update(PropertyRNA *prop, int noteflag, const char *func)
static const EnumPropertyItem sculpt_stroke_method_items[]
PointerRNA RNA_pointer_create_with_parent(const PointerRNA &parent, StructRNA *type, void *data)
@ BRUSH_GRAB_ACTIVE_VERTEX
@ BRUSH_HARDNESS_PRESSURE
@ BRUSH_INVERT_TO_SCRAPE_FILL
Scene * CTX_data_scene(const bContext *C)
const EnumPropertyItem rna_enum_brush_curve_preset_items[]
@ BRUSH_SMEAR_DEFORM_EXPAND
@ BRUSH_SMEAR_DEFORM_DRAG
@ BRUSH_SMEAR_DEFORM_PINCH
static EnumPropertyItem rna_enum_gpencil_brush_eraser_modes_items[]
@ GP_BRUSH_USE_PRESS_AT_STROKE
@ GP_BRUSH_USE_UV_AT_STROKE
@ GP_BRUSH_USE_STRENGTH_RAND_PRESS
@ GP_BRUSH_USE_UV_RAND_PRESS
@ GP_BRUSH_USE_PRESSURE_RAND_PRESS
@ GP_BRUSH_USE_STRENGTH_AT_STROKE
@ BRUSH_OVERLAY_SECONDARY
@ BRUSH_OVERLAY_CURSOR_OVERRIDE_ON_STROKE
@ BRUSH_OVERLAY_SECONDARY_OVERRIDE_ON_STROKE
@ BRUSH_OVERLAY_PRIMARY_OVERRIDE_ON_STROKE
@ GP_BRUSH_FILL_FIT_DISABLE
@ GP_BRUSH_FILL_SHOW_EXTENDLINES
@ GP_BRUSH_OUTLINE_STROKE
@ GP_BRUSH_ERASER_KEEP_CAPS
@ GP_BRUSH_ACTIVE_LAYER_ONLY
@ GP_BRUSH_FILL_SHOW_HELPLINES
@ GP_BRUSH_OCCLUDE_ERASER
@ GP_BRUSH_FILL_STROKE_COLLIDE
@ GP_BRUSH_USE_STRENGTH_PRESSURE
@ GP_BRUSH_DISSABLE_LASSO
@ GP_BRUSH_FILL_AUTO_REMOVE_FILL_GUIDES
@ GP_BRUSH_FILL_INTERNAL_GAPS
@ GP_BRUSH_STABILIZE_MOUSE
@ GP_BRUSH_GROUP_SETTINGS
@ GP_BRUSH_USE_CYCLIC_STROKE
@ GP_BRUSH_USE_JITTER_PRESSURE
@ GP_BRUSH_MATERIAL_PINNED
void RNA_def_property_int_default(PropertyRNA *prop, int value)
void rna_TextureSlot_update(bContext *C, PointerRNA *ptr)
static void rna_def_operator_stroke_element(BlenderRNA *brna)
void RNA_def_property_array(PropertyRNA *prop, int length)
PaintMode BKE_paintmode_get_active_from_context(const bContext *C)
@ BRUSH_CLOTH_SIMULATION_AREA_GLOBAL
@ BRUSH_CLOTH_SIMULATION_AREA_LOCAL
@ BRUSH_CLOTH_SIMULATION_AREA_DYNAMIC
void RNA_def_property_ui_icon(PropertyRNA *prop, int icon, int consecutive)
const EnumPropertyItem rna_enum_brush_gpencil_sculpt_types_items[]
@ BRUSH_CURVES_SCULPT_DENSITY_MODE_ADD
@ BRUSH_CURVES_SCULPT_DENSITY_MODE_AUTO
@ BRUSH_CURVES_SCULPT_DENSITY_MODE_REMOVE
@ BRUSH_CLOTH_FORCE_FALLOFF_PLANE
@ BRUSH_CLOTH_FORCE_FALLOFF_RADIAL
@ GP_SCULPT_FLAGMODE_APPLY_POSITION
@ GP_SCULPT_FLAGMODE_APPLY_UV
@ GP_SCULPT_FLAGMODE_APPLY_THICKNESS
@ GP_SCULPT_FLAGMODE_APPLY_STRENGTH
static void rna_def_curves_sculpt_options(BlenderRNA *brna)
@ VPAINT_BRUSH_TYPE_SMEAR
@ VPAINT_BRUSH_TYPE_AVERAGE
const EnumPropertyItem rna_enum_brush_curves_sculpt_brush_type_items[]
#define TEXTURE_CAPABILITY(prop_name_, ui_name_)
#define IMAPAINT_BRUSH_CAPABILITY(prop_name_, ui_name_)
#define SCULPT_BRUSH_CAPABILITY(prop_name_, ui_name_)
#define VPAINT_BRUSH_CAPABILITY(prop_name_, ui_name_)
#define BRUSH_CAPABILITY(prop_name_, ui_name_)
#define WPAINT_BRUSH_CAPABILITY(prop_name_, ui_name_)
eBrushImagePaintType image_brush_type
eMTex_BrushMapMode brush_map_mode