Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_brush.c
| Show First 20 Lines • Show All 1,975 Lines • ▼ Show 20 Lines | static const EnumPropertyItem brush_pose_origin_type_items[] = { | ||||
| {BRUSH_POSE_ORIGIN_FACE_SETS, | {BRUSH_POSE_ORIGIN_FACE_SETS, | ||||
| "FACE_SETS", | "FACE_SETS", | ||||
| 0, | 0, | ||||
| "Face Sets", | "Face Sets", | ||||
| "Creates a pose segment per face sets, starting from the active face set"}, | "Creates a pose segment per face sets, starting from the active face set"}, | ||||
| {0, NULL, 0, NULL, NULL}, | {0, NULL, 0, NULL, NULL}, | ||||
| }; | }; | ||||
| static const EnumPropertyItem brush_draw_sharp_deform_type_items[] = { | |||||
| {BRUSH_DRAW_SHARP_DEFORM_DRAW, "DRAW", 0, "Draw", "Deforms the vertices without pinching"}, | |||||
| {BRUSH_DRAW_SHARP_DEFORM_PINCH_RADIAL, | |||||
| "PINCH_RADIAL", | |||||
| 0, | |||||
| "Pinch Radial", | |||||
| "Pinches the vertices towards the center of the brush"}, | |||||
| {BRUSH_DRAW_SHARP_DEFORM_PINCH_PERPENDICULAR, | |||||
| "PINCH_PERPENDICULAR", | |||||
| 0, | |||||
| "Pinch Perpendicular", | |||||
| "Pinches the vertices towards the direction line of the stroke"}, | |||||
| {0, NULL, 0, NULL, NULL}, | |||||
| }; | |||||
| srna = RNA_def_struct(brna, "Brush", "ID"); | srna = RNA_def_struct(brna, "Brush", "ID"); | ||||
| RNA_def_struct_ui_text( | RNA_def_struct_ui_text( | ||||
| srna, "Brush", "Brush data-block for storing brush settings for painting and sculpting"); | srna, "Brush", "Brush data-block for storing brush settings for painting and sculpting"); | ||||
| RNA_def_struct_ui_icon(srna, ICON_BRUSH_DATA); | RNA_def_struct_ui_icon(srna, ICON_BRUSH_DATA); | ||||
| /* enums */ | /* enums */ | ||||
| prop = RNA_def_property(srna, "blend", PROP_ENUM, PROP_NONE); | prop = RNA_def_property(srna, "blend", PROP_ENUM, PROP_NONE); | ||||
| RNA_def_property_enum_items(prop, prop_blend_items); | RNA_def_property_enum_items(prop, prop_blend_items); | ||||
| ▲ Show 20 Lines • Show All 109 Lines • ▼ Show 20 Lines | static void rna_def_brush(BlenderRNA *brna) | ||||
| RNA_def_property_ui_text(prop, "Deformation", "Deformation type that is used in the brush"); | RNA_def_property_ui_text(prop, "Deformation", "Deformation type that is used in the brush"); | ||||
| RNA_def_property_update(prop, 0, "rna_Brush_update"); | RNA_def_property_update(prop, 0, "rna_Brush_update"); | ||||
| prop = RNA_def_property(srna, "pose_deform_type", PROP_ENUM, PROP_NONE); | prop = RNA_def_property(srna, "pose_deform_type", PROP_ENUM, PROP_NONE); | ||||
| RNA_def_property_enum_items(prop, brush_pose_deform_type_items); | RNA_def_property_enum_items(prop, brush_pose_deform_type_items); | ||||
| RNA_def_property_ui_text(prop, "Deformation", "Deformation type that is used in the brush"); | RNA_def_property_ui_text(prop, "Deformation", "Deformation type that is used in the brush"); | ||||
| RNA_def_property_update(prop, 0, "rna_Brush_update"); | RNA_def_property_update(prop, 0, "rna_Brush_update"); | ||||
| prop = RNA_def_property(srna, "draw_sharp_deform_type", PROP_ENUM, PROP_NONE); | |||||
| RNA_def_property_enum_items(prop, brush_draw_sharp_deform_type_items); | |||||
| RNA_def_property_ui_text(prop, "Deformation", "Deformation type that is used in the brush"); | |||||
| RNA_def_property_update(prop, 0, "rna_Brush_update"); | |||||
| prop = RNA_def_property(srna, "pose_origin_type", PROP_ENUM, PROP_NONE); | prop = RNA_def_property(srna, "pose_origin_type", PROP_ENUM, PROP_NONE); | ||||
| RNA_def_property_enum_items(prop, brush_pose_origin_type_items); | RNA_def_property_enum_items(prop, brush_pose_origin_type_items); | ||||
| RNA_def_property_ui_text(prop, | RNA_def_property_ui_text(prop, | ||||
| "Rotation Origins", | "Rotation Origins", | ||||
| "Method to set the rotation origins for the segments of the brush"); | "Method to set the rotation origins for the segments of the brush"); | ||||
| RNA_def_property_update(prop, 0, "rna_Brush_update"); | RNA_def_property_update(prop, 0, "rna_Brush_update"); | ||||
| prop = RNA_def_property(srna, "jitter_unit", PROP_ENUM, PROP_NONE); /* as an enum */ | prop = RNA_def_property(srna, "jitter_unit", PROP_ENUM, PROP_NONE); /* as an enum */ | ||||
| ▲ Show 20 Lines • Show All 934 Lines • Show Last 20 Lines | |||||