Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_brush.c
| Show First 20 Lines • Show All 1,977 Lines • ▼ Show 20 Lines | static void rna_def_brush(BlenderRNA *brna) | ||||
| }; | }; | ||||
| static const EnumPropertyItem brush_cloth_force_falloff_type_items[] = { | static const EnumPropertyItem brush_cloth_force_falloff_type_items[] = { | ||||
| {BRUSH_CLOTH_FORCE_FALLOFF_RADIAL, "RADIAL", 0, "Radial", ""}, | {BRUSH_CLOTH_FORCE_FALLOFF_RADIAL, "RADIAL", 0, "Radial", ""}, | ||||
| {BRUSH_CLOTH_FORCE_FALLOFF_PLANE, "PLANE", 0, "Plane", ""}, | {BRUSH_CLOTH_FORCE_FALLOFF_PLANE, "PLANE", 0, "Plane", ""}, | ||||
| {0, NULL, 0, NULL, NULL}, | {0, NULL, 0, NULL, NULL}, | ||||
| }; | }; | ||||
| static const EnumPropertyItem brush_cloth_simulation_area_type_items[] = { | |||||
| {BRUSH_CLOTH_SIMULATION_AREA_LOCAL, | |||||
| "LOCAL", | |||||
| 0, | |||||
| "Local", | |||||
| "Simulates only a specific area arround the brush limited by a fixed radius"}, | |||||
| {BRUSH_CLOTH_SIMULATION_AREA_GLOBAL, "GLOBAL", 0, "Global", "Simulates the entire mesh"}, | |||||
| {0, NULL, 0, NULL, NULL}, | |||||
| }; | |||||
| static const EnumPropertyItem brush_smooth_deform_type_items[] = { | static const EnumPropertyItem brush_smooth_deform_type_items[] = { | ||||
| {BRUSH_SMOOTH_DEFORM_LAPLACIAN, | {BRUSH_SMOOTH_DEFORM_LAPLACIAN, | ||||
| "LAPLACIAN", | "LAPLACIAN", | ||||
| 0, | 0, | ||||
| "Laplacian", | "Laplacian", | ||||
| "Smooths the surface and the volume"}, | "Smooths the surface and the volume"}, | ||||
| {BRUSH_SMOOTH_DEFORM_SURFACE, | {BRUSH_SMOOTH_DEFORM_SURFACE, | ||||
| "SURFACE", | "SURFACE", | ||||
| ▲ Show 20 Lines • Show All 154 Lines • ▼ Show 20 Lines | static void rna_def_brush(BlenderRNA *brna) | ||||
| RNA_def_property_update(prop, 0, "rna_Brush_update"); | RNA_def_property_update(prop, 0, "rna_Brush_update"); | ||||
| prop = RNA_def_property(srna, "cloth_force_falloff_type", PROP_ENUM, PROP_NONE); | prop = RNA_def_property(srna, "cloth_force_falloff_type", PROP_ENUM, PROP_NONE); | ||||
| RNA_def_property_enum_items(prop, brush_cloth_force_falloff_type_items); | RNA_def_property_enum_items(prop, brush_cloth_force_falloff_type_items); | ||||
| RNA_def_property_ui_text( | RNA_def_property_ui_text( | ||||
| prop, "Force Falloff", "Shape used in the brush to apply force to the cloth"); | prop, "Force Falloff", "Shape used in the brush to apply force to the cloth"); | ||||
| RNA_def_property_update(prop, 0, "rna_Brush_update"); | RNA_def_property_update(prop, 0, "rna_Brush_update"); | ||||
| prop = RNA_def_property(srna, "cloth_simulation_area_type", PROP_ENUM, PROP_NONE); | |||||
| RNA_def_property_enum_items(prop, brush_cloth_simulation_area_type_items); | |||||
| RNA_def_property_ui_text( | |||||
| prop, | |||||
| "Simulation Area", | |||||
| "Part of the mesh that is going to be simulated when the stroke is active"); | |||||
| RNA_def_property_update(prop, 0, "rna_Brush_update"); | |||||
| prop = RNA_def_property(srna, "smooth_deform_type", PROP_ENUM, PROP_NONE); | prop = RNA_def_property(srna, "smooth_deform_type", PROP_ENUM, PROP_NONE); | ||||
| RNA_def_property_enum_items(prop, brush_smooth_deform_type_items); | RNA_def_property_enum_items(prop, brush_smooth_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, "smear_deform_type", PROP_ENUM, PROP_NONE); | prop = RNA_def_property(srna, "smear_deform_type", PROP_ENUM, PROP_NONE); | ||||
| RNA_def_property_enum_items(prop, brush_smear_deform_type_items); | RNA_def_property_enum_items(prop, brush_smear_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"); | ||||
| ▲ Show 20 Lines • Show All 1,116 Lines • Show Last 20 Lines | |||||