36 {
PE_BRUSH_LENGTH,
"LENGTH", 0,
"Length",
"Make hairs longer or shorter"},
40 {0,
nullptr, 0,
nullptr,
nullptr},
47 ICON_RESTRICT_VIEW_ON,
49 "Align strokes to current view plane"},
54 "Project strokes to plane locked to Y"},
59 "Project strokes to plane locked to X"},
60 {
GP_LOCKAXIS_Z,
"AXIS_Z", ICON_AXIS_TOP,
"Top (X-Y)",
"Project strokes to plane locked to Z"},
65 "Align strokes to current 3D cursor orientation"},
66 {0,
nullptr, 0,
nullptr,
nullptr},
74 "Paint using the active material base color"},
79 "Paint the material with a color attribute"},
80 {0,
nullptr, 0,
nullptr,
nullptr},
88 {0,
nullptr, 0,
nullptr,
nullptr},
100 {0,
nullptr, 0,
nullptr,
nullptr},
129const EnumPropertyItem rna_enum_particle_edit_disconnected_hair_brush_items[] = {
132 {
PE_BRUSH_LENGTH,
"LENGTH", 0,
"Length",
"Make hairs longer or shorter"},
135 {0,
nullptr, 0,
nullptr,
nullptr},
141 {
PE_BRUSH_LENGTH,
"LENGTH", 0,
"Length",
"Make paths longer or shorter"},
142 {0,
nullptr, 0,
nullptr,
nullptr},
150 brush = &pset->brush[pset->brushtype];
201static void rna_ParticleEdit_tool_set(
PointerRNA *ptr,
int value)
207 Object *ob = pset->object;
241 return rna_enum_particle_edit_disconnected_hair_brush_items;
249 return particle_edit_cache_brush_items;
252static bool rna_ParticleEdit_editable_get(
PointerRNA *ptr)
256 return (pset->object && pset->scene &&
PE_get_current(
nullptr, pset->scene, pset->object));
258static bool rna_ParticleEdit_hair_get(
PointerRNA *ptr)
265 return (edit && edit->psys);
271static std::optional<std::string> rna_ParticleEdit_path(
const PointerRNA * )
273 return "tool_settings.particle_edit";
291 return (
brush ==
nullptr) || (
paint->runtime->ob_mode &
brush->ob_mode) != 0;
322static std::optional<std::string> rna_Sculpt_path(
const PointerRNA * )
324 return "tool_settings.sculpt";
327static std::optional<std::string> rna_VertexPaint_path(
const PointerRNA *ptr)
329 const Scene *scene = id_cast<Scene *>(ptr->owner_id);
331 if (ptr->data == ts->vpaint) {
332 return "tool_settings.vertex_paint";
334 return "tool_settings.weight_paint";
337static std::optional<std::string> rna_ImagePaintSettings_path(
const PointerRNA * )
339 return "tool_settings.image_paint";
342static std::optional<std::string> rna_PaintModeSettings_path(
const PointerRNA * )
344 return "tool_settings.paint_mode";
347static std::optional<std::string> rna_UvSculpt_path(
const PointerRNA * )
349 return "tool_settings.uv_sculpt";
352static std::optional<std::string> rna_CurvesSculpt_path(
const PointerRNA * )
354 return "tool_settings.curves_sculpt";
357static std::optional<std::string> rna_GpPaint_path(
const PointerRNA * )
359 return "tool_settings.gpencil_paint";
362static std::optional<std::string> rna_GpVertexPaint_path(
const PointerRNA * )
364 return "tool_settings.gpencil_vertex_paint";
367static std::optional<std::string> rna_GpSculptPaint_path(
const PointerRNA * )
369 return "tool_settings.gpencil_sculpt_paint";
372static std::optional<std::string> rna_GpWeightPaint_path(
const PointerRNA * )
374 return "tool_settings.gpencil_weight_paint";
377static std::optional<std::string> rna_ParticleBrush_path(
const PointerRNA * )
379 return "tool_settings.particle_edit.brush";
428 Image *ima = scene->toolsettings->imapaint.canvas;
438static void rna_UvSculpt_curve_preset_set(
PointerRNA *ptr,
int value)
440 Scene *scene =
reinterpret_cast<Scene *
>(ptr->owner_id);
442 if (!scene->toolsettings->uvsculpt.curve_distance_falloff) {
444 1, 0.0f, 0.0f, 1.0f, 1.0f);
447 scene->toolsettings->uvsculpt.curve_distance_falloff_preset =
int8_t(value);
471 return imapaint->missing_data == 0;
474static std::optional<std::string> rna_GPencilSculptSettings_path(
const PointerRNA * )
476 return "tool_settings.gpencil_sculpt";
479static std::optional<std::string> rna_GPencilSculptGuide_path(
const PointerRNA * )
481 return "tool_settings.gpencil_sculpt.guide";
490 return paint->mesh_automasking_settings;
493static std::optional<std::string> rna_MeshAutomaskingSettings_path(
const PointerRNA *ptr)
495 switch (
GS(ptr->owner_id->name)) {
497 const Scene *scene =
reinterpret_cast<Scene *
>(ptr->owner_id);
498 const ToolSettings *tool_settings = scene ? scene->toolsettings :
nullptr;
499 if (tool_settings ==
nullptr) {
502 if (rna_MeshAutomaskingSettings_address_get(
503 reinterpret_cast<Paint *
>(tool_settings->sculpt)) == ptr->data)
505 return "tool_settings.sculpt.mesh_automasking_settings";
507 if (rna_MeshAutomaskingSettings_address_get(
508 reinterpret_cast<Paint *
>(tool_settings->vpaint)) == ptr->data)
510 return "tool_settings.vertex_paint.mesh_automasking_settings";
512 if (rna_MeshAutomaskingSettings_address_get(
513 reinterpret_cast<Paint *
>(tool_settings->wpaint)) == ptr->data)
515 return "tool_settings.weight_paint.mesh_automasking_settings";
520 return "mesh_automasking_settings";
527static void rna_MeshAutomaskingSettings_invert_cavity_set(
PointerRNA *ptr,
bool val)
541static void rna_MeshAutomaskingSettings_cavity_set(
PointerRNA *ptr,
bool val)
562 switch (
GS(ptr->owner_id->name)) {
588 rna_UnifiedPaintSettings_update(
C, ptr);
592static void rna_UnifiedPaintSettings_size_set(
PointerRNA *ptr,
int value)
601static void rna_UnifiedPaintSettings_unprojected_size_set(
PointerRNA *ptr,
float value)
607 ups->unprojected_size = value;
614 rna_UnifiedPaintSettings_update(
C, ptr);
623 return &
paint->unified_paint_settings;
626static std::optional<std::string> rna_UnifiedPaintSettings_path(
const PointerRNA *ptr)
628 const Scene *scene =
reinterpret_cast<Scene *
>(ptr->owner_id);
629 const ToolSettings *tool_settings = scene ? scene->toolsettings :
nullptr;
630 if (tool_settings ==
nullptr) {
633 if (rna_UnifiedPaintSettings_address_get(
reinterpret_cast<Paint *
>(tool_settings->vpaint)) ==
636 return "tool_settings.vertex_paint.unified_paint_settings";
638 if (rna_UnifiedPaintSettings_address_get(
reinterpret_cast<Paint *
>(tool_settings->wpaint)) ==
641 return "tool_settings.weight_paint.unified_paint_settings";
643 if (rna_UnifiedPaintSettings_address_get(
reinterpret_cast<Paint *
>(tool_settings->sculpt)) ==
646 return "tool_settings.sculpt.unified_paint_settings";
648 if (rna_UnifiedPaintSettings_address_get(
reinterpret_cast<Paint *
>(tool_settings->gp_paint)) ==
651 return "tool_settings.gpencil_paint.unified_paint_settings";
653 if (rna_UnifiedPaintSettings_address_get(
654 reinterpret_cast<Paint *
>(tool_settings->gp_vertexpaint)) == ptr->data)
656 return "tool_settings.gpencil_vertex_paint.unified_paint_settings";
658 if (rna_UnifiedPaintSettings_address_get(
659 reinterpret_cast<Paint *
>(tool_settings->gp_sculptpaint)) == ptr->data)
661 return "tool_settings.gpencil_sculpt_paint.unified_paint_settings";
663 if (rna_UnifiedPaintSettings_address_get(
664 reinterpret_cast<Paint *
>(tool_settings->gp_weightpaint)) == ptr->data)
666 return "tool_settings.gpencil_weight_paint.unified_paint_settings";
668 if (rna_UnifiedPaintSettings_address_get(
669 reinterpret_cast<Paint *
>(tool_settings->curves_sculpt)) == ptr->data)
671 return "tool_settings.curves_sculpt.unified_paint_settings";
692 const char *prop_name,
717 prop,
"rna_Paint_brush_get",
nullptr,
nullptr,
"rna_Paint_brush_poll");
724 "Brush Asset Reference",
725 "A weak reference to the matching brush asset, used e.g. to restore "
726 "the last used brush on file load");
746 prop,
"Fast Navigate",
"For multires, show low resolution while navigating the view");
753 "Delay Viewport Updates",
754 "Update the geometry when it enters the view, providing faster view navigation");
760 prop,
"Show BVH Nodes",
"Show the underlying BVH nodes as differently colored faces");
782 "Symmetry Feathering",
783 "Reduce the strength of the brush where it overlaps symmetrical daubs");
802 prop,
"Tiling offset for the X Axis",
"Stride at which tiled strokes are copied");
850 {0,
"VIEW", 0,
"View",
"Measure brush size relative to the view"},
855 "Measure brush size relative to the scene"},
856 {0,
nullptr, 0,
nullptr,
nullptr},
862 srna,
"Unified Paint Settings",
"Overrides for some of the active brush's settings");
869 prop,
"Use Unified Size",
"Instead of per-brush size, the size is shared across brushes");
876 "Use Unified Strength",
877 "Instead of per-brush strength, the strength is shared across brushes");
884 "Use Unified Weight",
885 "Instead of per-brush weight, the weight is shared across brushes");
892 prop,
"Use Unified Color",
"Instead of per-brush color, the color is shared across brushes");
900 "Use Unified Input Samples",
901 "Instead of per-brush input samples, the value is shared across brushes");
917 prop,
nullptr,
"rna_UnifiedPaintSettings_unprojected_size_set",
nullptr);
930 prop,
"Strength",
"How powerful the effect of the brush is when applied");
1041 "Number of input samples to average together to smooth the brush stroke");
1049 prop,
"Size Unit",
"Measure brush size relative to the view or the scene");
1061 srna,
"Automasking Settings",
"Automasking settings for mesh painting & sculpting.");
1076 prop,
nullptr,
"rna_MeshAutomaskingSettings_invert_cavity_set");
1080 }
while ((++entry)->identifier);
1088 "Propagation Steps",
1089 "Distance where boundary edge automasking is going to protect vertices "
1090 "from the fully masked edge");
1137 prop,
"Area Normal Falloff",
"Extend the angular range with a falloff gradient");
1152 prop,
"View Normal Falloff",
"Extend the angular range with a falloff gradient");
1163 "Subdivide long edges to add mesh detail where needed"},
1168 "Collapse short edges to remove mesh detail where possible"},
1170 "SUBDIVIDE_COLLAPSE",
1172 "Subdivide Collapse",
1173 "Both subdivide long edges and collapse short edges to refine mesh detail"},
1174 {0,
nullptr, 0,
nullptr,
nullptr},
1182 "Mesh detail is relative to the brush size and detail size"},
1187 "Mesh detail is constant in world space according to detail size"},
1192 "Mesh detail is relative to brush size"},
1197 "Mesh detail does not change on each stroke, only when using Flood Fill"},
1198 {0,
nullptr, 0,
nullptr,
nullptr},
1206 "Applies the transformation to all vertices in the mesh"},
1211 "Applies the transformation simulating elasticity using the radius of the cursor"},
1212 {0,
nullptr, 0,
nullptr,
nullptr},
1242 "Use only deformation modifiers (temporary disable all "
1243 "constructive modifiers except multi-resolution)");
1252 prop,
"Detail Size",
"Maximum edge length for dynamic topology sculpting (in pixels)");
1260 "Detail Percentage",
1261 "Maximum edge length for dynamic topology sculpting (in brush percentage)");
1270 "Maximum edge length for dynamic topology sculpting (as divisor "
1271 "of Blender unit - higher value means smaller edge length)");
1282 prop,
"Detail Refine Method",
"In dynamic-topology mode, how to add or remove mesh detail");
1289 prop,
"Detail Type Method",
"In dynamic-topology mode, how mesh detail size is calculated");
1302 prop,
"Transform Mode",
"How the transformation is going to be applied to the target");
1308 prop,
"Orientation",
"Object whose Z axis defines orientation of gravity");
1435 prop,
nullptr,
nullptr,
nullptr,
"rna_Image_no_renderresult_or_viewer_poll");
1451 "Detect image slots from the material"},
1456 "Set image for texture painting directly"},
1457 {0,
nullptr, 0,
nullptr,
nullptr},
1466 "No interpolation (sample closest texel)"},
1467 {0,
nullptr, 0,
nullptr,
nullptr},
1487 prop,
"Occlude",
"Only paint onto the faces directly under the brush (slower)");
1516 prop,
nullptr,
nullptr,
nullptr,
"rna_Image_no_renderresult_or_viewer_poll");
1523 prop,
nullptr,
nullptr,
nullptr,
"rna_Image_no_renderresult_or_viewer_poll");
1531 prop,
nullptr,
nullptr,
nullptr,
"rna_Image_no_renderresult_or_viewer_poll");
1549 "Use another UV map as clone source, otherwise use the 3D cursor as the source");
1557 prop,
"Bleed",
"Extend paint beyond the faces' UVs to reduce seams (in pixels, slower)");
1562 prop,
"Angle",
"Paint most on faces pointing towards the view according to this angle");
1571 "Size to capture the image for re-projecting",
1609 prop,
"Missing Texture",
"Image Painting does not have a texture to paint on");
1631 {
SCE_SELECT_PATH,
"PATH", ICON_PARTICLE_PATH,
"Path",
"Path edit mode"},
1632 {
SCE_SELECT_POINT,
"POINT", ICON_PARTICLE_POINT,
"Point",
"Point select mode"},
1633 {
SCE_SELECT_END,
"TIP", ICON_PARTICLE_TIP,
"Tip",
"Tip select mode"},
1634 {0,
nullptr, 0,
nullptr,
nullptr},
1638 {0,
"ADD", 0,
"Add",
"Make hairs more puffy"},
1639 {1,
"SUB", 0,
"Sub",
"Make hairs less puffy"},
1640 {0,
nullptr, 0,
nullptr,
nullptr},
1644 {0,
"GROW", 0,
"Grow",
"Make hairs longer"},
1645 {1,
"SHRINK", 0,
"Shrink",
"Make hairs shorter"},
1646 {0,
nullptr, 0,
nullptr,
nullptr},
1653 {0,
nullptr, 0,
nullptr,
nullptr},
1668 prop,
nullptr,
"rna_ParticleEdit_tool_set",
"rna_ParticleEdit_tool_itemf");
1695 prop,
"Emitter Distance",
"Distance to keep particles away from the emitter");
1700 prop,
"Fade Time",
"Fade paths and keys further away from current frame");
1717 prop,
"Interpolate",
"Interpolate new particles from the existing ones");
1809 "Apply puff to unselected end-points (helps maintain hair volume when puffing root)");
1835 {
GP_GUIDE_CIRCULAR,
"CIRCULAR", 0,
"Circular",
"Use single point to create rings"},
1836 {
GP_GUIDE_RADIAL,
"RADIAL", 0,
"Radial",
"Use single point as direction"},
1838 {
GP_GUIDE_GRID,
"GRID", 0,
"Grid",
"Grid allows horizontal and vertical lines"},
1839 {
GP_GUIDE_ISO,
"ISO", 0,
"Isometric",
"Grid allows isometric and vertical lines"},
1840 {0,
nullptr, 0,
nullptr,
nullptr},
1847 {0,
nullptr, 0,
nullptr,
nullptr},
1861 prop,
"Use Snapping",
"Enable snapping to guides angle or spacing options");
1927 "GPencil Sculpt Settings",
1928 "General properties for Grease Pencil stroke sculpting tools");
1941 "Use falloff effect when edit in multiframe mode to compute brush effect by frame");
1954 prop,
"Scale Stroke Thickness",
"Scale the stroke thickness when transforming strokes");
1995 prop,
"Curve",
"Custom curve to control falloff of brush effect by Grease Pencil frames");
General operations, lookup, etc. for materials.
General operations, lookup, etc. for blender objects.
#define BLT_I18NCONTEXT_AMOUNT
#define BLT_I18NCONTEXT_ID_CURVE_LEGACY
#define BLT_I18NCONTEXT_OPERATOR_DEFAULT
#define MAX_BRUSH_PIXEL_RADIUS
#define MAX_BRUSH_PIXEL_DIAMETER
#define AUTOMASKING_BOUNDARY_EDGES_MAX_PROPAGATION_STEPS
#define IMAGEPAINT_MODE_IMAGE
#define IMAGEPAINT_MODE_MATERIAL
#define PAINT_MAX_INPUT_SAMPLES
Read Blender memory allocation and freeing.
#define BLI_assert_unreachable()
void invalidate_overlay_all(Scene &scene)
void psys_free_path_cache(struct ParticleSystem *psys, struct PTCacheEdit *edit)
void WM_main_add_notifier(uint type, void *reference)
static const EnumPropertyItem rna_enum_gpencil_paint_mode[]
CurveMapping * BKE_curvemapping_add(int tot, float minx, float miny, float maxx, float maxy)
void RNA_def_struct_ui_text(StructRNA *srna, const char *name, const char *description)
@ GP_SCULPT_SETT_FLAG_AUTOMASK_LAYER_ACTIVE
@ GP_SCULPT_SETT_FLAG_FRAME_FALLOFF
@ GP_SCULPT_SETT_FLAG_AUTOMASK_STROKE
@ GP_SCULPT_SETT_FLAG_AUTOMASK_MATERIAL_ACTIVE
@ GP_SCULPT_SETT_FLAG_PRIMITIVE_CURVE
@ GP_SCULPT_SETT_FLAG_AUTOMASK_LAYER_STROKE
@ GP_SCULPT_SETT_FLAG_AUTOMASK_MATERIAL_STROKE
@ GP_SCULPT_SETT_FLAG_SCALE_THICKNESS
@ PAINT_SHOW_BRUSH_ON_SURFACE
@ PAINT_SCULPT_DELAY_UPDATES
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[]
void RNA_def_struct_ui_icon(StructRNA *srna, int icon)
Object * BKE_view_layer_active_object_get(const ViewLayer *view_layer)
@ IMAGEPAINT_MISSING_STENCIL
@ IMAGEPAINT_MISSING_MATERIAL
void RNA_def_property_boolean_negative_sdna(PropertyRNA *prop, const char *structname, const char *propname, int64_t booleanbit)
void BKE_particle_batch_cache_dirty_tag(struct ParticleSystem *psys, int mode)
@ VP_FLAG_VGROUP_RESTRICT
const EnumPropertyItem rna_enum_particle_edit_hair_brush_items[]
@ IMAGEPAINT_PROJECT_LAYER_STENCIL_INV
@ IMAGEPAINT_PROJECT_LAYER_STENCIL
@ IMAGEPAINT_PROJECT_FLAT
@ IMAGEPAINT_PROJECT_XRAY
@ IMAGEPAINT_PROJECT_LAYER_CLONE
@ IMAGEPAINT_PROJECT_BACKFACE
void RNA_def_property_ui_scale_type(PropertyRNA *prop, PropertyScaleType ui_scale_type)
static const EnumPropertyItem rna_enum_canvas_source_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)
struct ParticleSystem * psys_get_current(struct Object *ob)
static void rna_def_particle_edit(BlenderRNA *brna)
void ED_space_image_sync(Main *bmain, Image *image, bool ignore_render_viewer)
void RNA_def_property_pointer_funcs(PropertyRNA *prop, const char *get, const char *set, const char *type_fn, const char *poll)
PointerRNA RNA_id_pointer_create(ID *id)
Depsgraph * CTX_data_depsgraph_pointer(const bContext *C)
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
@ IMAGEPAINT_INTERP_CLOSEST
@ IMAGEPAINT_INTERP_LINEAR
void RNA_def_function_ui_description(FunctionRNA *func, const char *description)
static void rna_def_gp_sculptpaint(BlenderRNA *brna)
const EnumPropertyItem rna_enum_symmetrize_direction_items[]
void RNA_def_property_struct_type(PropertyRNA *prop, const char *type)
void BKE_brush_scale_size(int *r_brush_size, float new_unprojected_size, float old_unprojected_size)
void RNA_def_property_enum_bitflag_sdna(PropertyRNA *prop, const char *structname, const char *propname)
void RNA_define_animate_sdna(bool animate)
ViewLayer * CTX_data_view_layer(const bContext *C)
void RNA_def_property_ui_range(PropertyRNA *prop, double min, double max, double step, int precision)
@ PE_BRUSH_DATA_PUFF_VOLUME
@ BMO_SYMMETRIZE_NEGATIVE_Z
@ BMO_SYMMETRIZE_POSITIVE_X
@ BMO_SYMMETRIZE_NEGATIVE_Y
@ BMO_SYMMETRIZE_POSITIVE_Z
@ BMO_SYMMETRIZE_POSITIVE_Y
@ BMO_SYMMETRIZE_NEGATIVE_X
void RNA_def_property_float_sdna(PropertyRNA *prop, const char *structname, const char *propname)
void RNA_def_property_float_default(PropertyRNA *prop, float value)
static void rna_def_paint_curve_visibility_flag(StructRNA *srna, const char *prop_name, const char *ui_name, const int64_t flag)
static void rna_def_sculpt(BlenderRNA *brna)
static void rna_def_gp_weightpaint(BlenderRNA *brna)
PropertyRNA * RNA_def_property(StructOrFunctionRNA *cont_, const char *identifier_c_str, int type, int subtype)
static void rna_def_unified_paint_settings(BlenderRNA *brna)
void RNA_def_sculpt_paint(BlenderRNA *brna)
void RNA_def_struct_sdna(StructRNA *srna, const char *structname)
void RNA_def_property_enum_items(PropertyRNA *prop, const EnumPropertyItem *item)
PTCacheEdit * PE_get_current(Depsgraph *depsgraph, Scene *scene, Object *ob)
void RNA_def_property_int_funcs(PropertyRNA *prop, const char *get, const char *set, const char *range)
void DEG_id_tag_update(ID *id, unsigned int flags)
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 void rna_def_gp_vertexpaint(BlenderRNA *brna)
static void rna_def_vertex_paint(BlenderRNA *brna)
void RNA_def_struct_path_func(StructRNA *srna, const char *path)
static void rna_def_curves_sculpt(BlenderRNA *brna)
void RNA_def_property_subtype(PropertyRNA *prop, PropertySubType subtype)
void RNA_def_function_return(FunctionRNA *func, PropertyRNA *ret)
@ SCULPT_TRANSFORM_MODE_RADIUS_ELASTIC
@ SCULPT_TRANSFORM_MODE_ALL_VERTICES
bool BKE_view_layer_synced_ensure(const Main &bmain, const Scene *scene, ViewLayer *view_layer)
bool ED_paint_proj_mesh_data_check(Scene &scene, Object &ob, bool *r_has_uvs, bool *r_has_mat, bool *r_has_tex, bool *r_has_stencil)
static void rna_def_paint_curve(BlenderRNA *brna)
@ SCULPT_DYNTOPO_DETAIL_CONSTANT
@ SCULPT_DYNTOPO_COLLAPSE
@ SCULPT_DYNTOPO_SUBDIVIDE
@ SCULPT_DYNTOPO_DETAIL_MANUAL
@ SCULPT_DYNTOPO_DETAIL_BRUSH
static void rna_def_paint_mode(BlenderRNA *brna)
void RNA_def_struct_clear_flag(StructRNA *srna, StructFlag flag)
void RNA_def_property_enum_funcs(PropertyRNA *prop, const char *get, const char *set, const char *item)
static void rna_def_paint(BlenderRNA *brna)
void BKE_brush_color_sync_legacy(Brush *brush)
FunctionRNA * RNA_def_function(StructRNA *srna, const char *identifier_c_str, const char *call)
static void rna_def_gpencil_guides(BlenderRNA *brna)
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_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)
Main * CTX_data_main(const bContext *C)
@ PAINT_CANVAS_SOURCE_IMAGE
@ PAINT_CANVAS_SOURCE_MATERIAL
@ PAINT_CANVAS_SOURCE_COLOR_ATTRIBUTE
StructRNA * RNA_def_struct(BlenderRNA *brna, const char *identifier, const char *from)
ID_Type GS(const char *name)
void RNA_def_property_int_sdna(PropertyRNA *prop, const char *structname, const char *propname)
PropertyRNA * RNA_def_int_array(StructOrFunctionRNA *cont_, const char *identifier, const int len, const int *default_value, const int hardmin, const int hardmax, const char *ui_name, const char *ui_description, const int softmin, const int softmax)
static void rna_def_uv_sculpt(BlenderRNA *brna)
Brush * BKE_paint_brush(Paint *paint)
void RNA_def_property_update(PropertyRNA *prop, int noteflag, const char *func)
PointerRNA RNA_pointer_create_with_parent(const PointerRNA &parent, StructRNA *type, void *data)
@ GPPAINT_FLAG_USE_VERTEXCOLOR
@ GPPAINT_FLAG_USE_MATERIAL
void BKE_texpaint_slots_refresh_object(Scene *scene, Object *ob)
Scene * CTX_data_scene(const bContext *C)
const EnumPropertyItem rna_enum_brush_curve_preset_items[]
@ UNIFIED_PAINT_INPUT_SAMPLES_DEPRECATED
@ UNIFIED_PAINT_SIZE_DEPRECATED
@ UNIFIED_PAINT_COLOR_DEPRECATED
@ UNIFIED_PAINT_BRUSH_LOCK_SIZE
@ UNIFIED_PAINT_COLOR_JITTER
@ UNIFIED_PAINT_ALPHA_DEPRECATED
@ UNIFIED_PAINT_WEIGHT_DEPRECATED
PropertyRNA * RNA_def_boolean(StructOrFunctionRNA *cont_, const char *identifier, const bool default_value, const char *ui_name, const char *ui_description)
static const EnumPropertyItem rna_enum_gpencil_lock_axis_items[]
static void rna_def_gp_paint(BlenderRNA *brna)
Object * CTX_data_active_object(const bContext *C)
static void rna_def_mesh_automasking_settings(BlenderRNA *brna)
void RNA_def_property_array(PropertyRNA *prop, int length)
void RNA_def_property_ui_icon(PropertyRNA *prop, int icon, int consecutive)
Paint * BKE_paint_get_active(const Main &bmain, Scene *sce, ViewLayer *view_layer)
@ PAINT_DEBUG_SHOW_BVH_NODES
static void rna_def_gpencil_sculpt(BlenderRNA *brna)
@ PAINT_CURVE_SHOW_STRENGTH
@ PAINT_CURVE_SHOW_AUTO_SMOOTH
@ PAINT_CURVE_SHOW_JITTER
@ PAINT_CURVE_SHOW_HARDNESS
@ PAINT_CURVE_SHOW_SPACING
static void rna_def_image_paint(BlenderRNA *brna)
@ BKE_PARTICLE_BATCH_DIRTY_ALL