Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_modifier.c
| Show First 20 Lines • Show All 3,037 Lines • ▼ Show 20 Lines | static void rna_def_modifier_shrinkwrap(BlenderRNA *brna) | ||||
| RNA_def_property_boolean_sdna(prop, NULL, "shrinkOpts", MOD_SHRINKWRAP_PROJECT_ALLOW_POS_DIR); | RNA_def_property_boolean_sdna(prop, NULL, "shrinkOpts", MOD_SHRINKWRAP_PROJECT_ALLOW_POS_DIR); | ||||
| RNA_def_property_ui_text(prop, "Positive", "Allow vertices to move in the positive direction of axis"); | RNA_def_property_ui_text(prop, "Positive", "Allow vertices to move in the positive direction of axis"); | ||||
| RNA_def_property_update(prop, 0, "rna_Modifier_update"); | RNA_def_property_update(prop, 0, "rna_Modifier_update"); | ||||
| prop = RNA_def_property(srna, "use_keep_above_surface", PROP_BOOLEAN, PROP_NONE); | prop = RNA_def_property(srna, "use_keep_above_surface", PROP_BOOLEAN, PROP_NONE); | ||||
| RNA_def_property_boolean_sdna(prop, NULL, "shrinkOpts", MOD_SHRINKWRAP_KEEP_ABOVE_SURFACE); | RNA_def_property_boolean_sdna(prop, NULL, "shrinkOpts", MOD_SHRINKWRAP_KEEP_ABOVE_SURFACE); | ||||
| RNA_def_property_ui_text(prop, "Keep Above Surface", ""); | RNA_def_property_ui_text(prop, "Keep Above Surface", ""); | ||||
| RNA_def_property_update(prop, 0, "rna_Modifier_update"); | RNA_def_property_update(prop, 0, "rna_Modifier_update"); | ||||
| prop = RNA_def_property(srna, "invert_vertex_group", PROP_BOOLEAN, PROP_NONE); | |||||
| RNA_def_property_boolean_sdna(prop, NULL, "shrinkOpts", MOD_SHRINKWRAP_INVERT_VGROUP); | |||||
| RNA_def_property_ui_text(prop, "Invert", "Invert vertex group influence"); | |||||
| RNA_def_property_update(prop, 0, "rna_Modifier_update"); | |||||
| } | } | ||||
| static void rna_def_modifier_fluidsim(BlenderRNA *brna) | static void rna_def_modifier_fluidsim(BlenderRNA *brna) | ||||
| { | { | ||||
| StructRNA *srna; | StructRNA *srna; | ||||
| PropertyRNA *prop; | PropertyRNA *prop; | ||||
| srna = RNA_def_struct(brna, "FluidSimulationModifier", "Modifier"); | srna = RNA_def_struct(brna, "FluidSimulationModifier", "Modifier"); | ||||
| ▲ Show 20 Lines • Show All 74 Lines • ▼ Show 20 Lines | static void rna_def_modifier_simpledeform(BlenderRNA *brna) | ||||
| RNA_def_property_update(prop, 0, "rna_Modifier_update"); | RNA_def_property_update(prop, 0, "rna_Modifier_update"); | ||||
| prop = RNA_def_property(srna, "vertex_group", PROP_STRING, PROP_NONE); | prop = RNA_def_property(srna, "vertex_group", PROP_STRING, PROP_NONE); | ||||
| RNA_def_property_string_sdna(prop, NULL, "vgroup_name"); | RNA_def_property_string_sdna(prop, NULL, "vgroup_name"); | ||||
| RNA_def_property_ui_text(prop, "Vertex Group", "Vertex group name"); | RNA_def_property_ui_text(prop, "Vertex Group", "Vertex group name"); | ||||
| RNA_def_property_string_funcs(prop, NULL, NULL, "rna_SimpleDeformModifier_vgroup_name_set"); | RNA_def_property_string_funcs(prop, NULL, NULL, "rna_SimpleDeformModifier_vgroup_name_set"); | ||||
| RNA_def_property_update(prop, 0, "rna_Modifier_update"); | RNA_def_property_update(prop, 0, "rna_Modifier_update"); | ||||
| prop = RNA_def_property(srna, "invert_vertex_group", PROP_BOOLEAN, PROP_NONE); | |||||
| RNA_def_property_boolean_sdna(prop, NULL, "flag", MOD_SIMPLEDEFORM_INVERT_VGROUP); | |||||
| RNA_def_property_ui_text(prop, "Invert", "Invert vertex group influence"); | |||||
| RNA_def_property_update(prop, 0, "rna_Modifier_update"); | |||||
| prop = RNA_def_property(srna, "origin", PROP_POINTER, PROP_NONE); | prop = RNA_def_property(srna, "origin", PROP_POINTER, PROP_NONE); | ||||
| RNA_def_property_ui_text(prop, "Origin", "Offset the origin and orientation of the deformation"); | RNA_def_property_ui_text(prop, "Origin", "Offset the origin and orientation of the deformation"); | ||||
| RNA_def_property_flag(prop, PROP_EDITABLE | PROP_ID_SELF_CHECK); | RNA_def_property_flag(prop, PROP_EDITABLE | PROP_ID_SELF_CHECK); | ||||
| RNA_def_property_update(prop, 0, "rna_Modifier_dependency_update"); | RNA_def_property_update(prop, 0, "rna_Modifier_dependency_update"); | ||||
| prop = RNA_def_property(srna, "factor", PROP_FLOAT, PROP_NONE); | prop = RNA_def_property(srna, "factor", PROP_FLOAT, PROP_NONE); | ||||
| RNA_def_property_range(prop, -FLT_MAX, FLT_MAX); | RNA_def_property_range(prop, -FLT_MAX, FLT_MAX); | ||||
| RNA_def_property_ui_range(prop, -10.0, 10.0, 1.0, 3); | RNA_def_property_ui_range(prop, -10.0, 10.0, 1.0, 3); | ||||
| ▲ Show 20 Lines • Show All 1,596 Lines • Show Last 20 Lines | |||||