Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_modifier.c
| Context not available. | |||||
| prop = RNA_def_property(srna, "lock_x", PROP_BOOLEAN, PROP_NONE); | prop = RNA_def_property(srna, "lock_x", PROP_BOOLEAN, PROP_NONE); | ||||
| RNA_def_property_boolean_sdna(prop, NULL, "axis", MOD_SIMPLEDEFORM_LOCK_AXIS_X); | RNA_def_property_boolean_sdna(prop, NULL, "axis", MOD_SIMPLEDEFORM_LOCK_AXIS_X); | ||||
| RNA_def_property_ui_text(prop, "Lock X Axis", "Do not allow deformation along the X axis"); | RNA_def_property_ui_text(prop, "Projected X", "Do not allow deformation along the X axis as projected on dominant axis"); | ||||
| RNA_def_property_update(prop, 0, "rna_Modifier_update"); | RNA_def_property_update(prop, 0, "rna_Modifier_update"); | ||||
| prop = RNA_def_property(srna, "lock_y", PROP_BOOLEAN, PROP_NONE); | prop = RNA_def_property(srna, "lock_y", PROP_BOOLEAN, PROP_NONE); | ||||
| RNA_def_property_boolean_sdna(prop, NULL, "axis", MOD_SIMPLEDEFORM_LOCK_AXIS_Y); | RNA_def_property_boolean_sdna(prop, NULL, "axis", MOD_SIMPLEDEFORM_LOCK_AXIS_Y); | ||||
| RNA_def_property_ui_text(prop, "Lock Y Axis", "Do not allow deformation along the Y axis"); | RNA_def_property_ui_text(prop, "Projected Y", "Do not allow deformation along the Y axis as projected on dominant axis"); | ||||
| 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); | prop = RNA_def_property(srna, "invert_vertex_group", PROP_BOOLEAN, PROP_NONE); | ||||
| RNA_def_property_boolean_sdna(prop, NULL, "flag", MOD_SIMPLEDEFORM_FLAG_INVERT_VGROUP); | RNA_def_property_boolean_sdna(prop, NULL, "flag", MOD_SIMPLEDEFORM_FLAG_INVERT_VGROUP); | ||||
| RNA_def_property_ui_text(prop, "Invert", "Invert vertex group influence"); | RNA_def_property_ui_text(prop, "Invert", "Invert vertex group influence"); | ||||
| RNA_def_property_update(prop, 0, "rna_Modifier_update"); | RNA_def_property_update(prop, 0, "rna_Modifier_update"); | ||||
| prop = RNA_def_property(srna, "def_axis", PROP_ENUM, PROP_NONE); | |||||
| RNA_def_property_enum_items(prop, rna_enum_axis_xyz_items); | |||||
| RNA_def_property_ui_text(prop, "Deform axis", "Deformation axis"); | |||||
| RNA_def_property_update(prop, 0, "rna_Modifier_update"); | |||||
| } | } | ||||
| static void rna_def_modifier_surface(BlenderRNA *brna) | static void rna_def_modifier_surface(BlenderRNA *brna) | ||||
| Context not available. | |||||