Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_modifier.c
| Context not available. | |||||
| static EnumPropertyItem simple_deform_mode_items[] = { | static EnumPropertyItem simple_deform_mode_items[] = { | ||||
| {MOD_SIMPLEDEFORM_MODE_TWIST, "TWIST", 0, "Twist", "Rotate around the Z axis of the modifier space"}, | {MOD_SIMPLEDEFORM_MODE_TWIST, "TWIST", 0, "Twist", "Rotate around the Z axis of the modifier space"}, | ||||
| {MOD_SIMPLEDEFORM_MODE_BEND, "BEND", 0, "Bend", "Bend the mesh over the Z axis of the modifier space"}, | {MOD_SIMPLEDEFORM_MODE_BEND, "BEND", 0, "Bend", "Bend the Z space of the mesh over the Y axis of the modifier space"}, | ||||
| {MOD_SIMPLEDEFORM_MODE_TAPER, "TAPER", 0, "Taper", "Linearly scale along Z axis of the modifier space"}, | {MOD_SIMPLEDEFORM_MODE_TAPER, "TAPER", 0, "Taper", "Linearly scale along the Z axis of the modifier space"}, | ||||
| {MOD_SIMPLEDEFORM_MODE_STRETCH, "STRETCH", 0, "Stretch", | {MOD_SIMPLEDEFORM_MODE_STRETCH, "STRETCH", 0, "Stretch", | ||||
| "Stretch the object along the Z axis of the modifier space"}, | "Stretch the object along the Z axis of the modifier space"}, | ||||
| {0, NULL, 0, NULL, NULL} | {0, NULL, 0, NULL, NULL} | ||||
| Context not available. | |||||
| 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_float_default(prop, 1.5); | ||||
| RNA_def_property_ui_range(prop, 0, FLT_MAX, 1.0, 3); | |||||
| RNA_def_property_ui_text(prop, "Factor", "Amount to deform object"); | RNA_def_property_ui_text(prop, "Factor", "Amount to deform object"); | ||||
| RNA_def_property_update(prop, 0, "rna_Modifier_update"); | RNA_def_property_update(prop, 0, "rna_Modifier_update"); | ||||
| Context not available. | |||||
| RNA_def_property_float_sdna(prop, NULL, "factor"); | RNA_def_property_float_sdna(prop, NULL, "factor"); | ||||
| RNA_def_property_range(prop, -FLT_MAX, FLT_MAX); | RNA_def_property_range(prop, -FLT_MAX, FLT_MAX); | ||||
| RNA_def_property_float_default(prop, DEG2RADF(45.0f)); | RNA_def_property_float_default(prop, DEG2RADF(45.0f)); | ||||
| RNA_def_property_ui_range(prop, DEG2RAD(-360.0), DEG2RAD(360.0), 10.0, 3); | RNA_def_property_ui_range(prop, -FLT_MAX, FLT_MAX, 10.0, 3); | ||||
| RNA_def_property_ui_text(prop, "Angle", "Angle of deformation"); | RNA_def_property_ui_text(prop, "Angle", "Angle of deformation"); | ||||
| RNA_def_property_update(prop, 0, "rna_Modifier_update"); | RNA_def_property_update(prop, 0, "rna_Modifier_update"); | ||||
| Context not available. | |||||
| RNA_def_property_array(prop, 2); | RNA_def_property_array(prop, 2); | ||||
| RNA_def_property_range(prop, 0, 1); | RNA_def_property_range(prop, 0, 1); | ||||
| RNA_def_property_ui_range(prop, 0, 1, 5, 2); | RNA_def_property_ui_range(prop, 0, 1, 5, 2); | ||||
| RNA_def_property_ui_text(prop, "Limits", "Lower/Upper limits for deform"); | RNA_def_property_ui_text(prop, "Limits", "Relative lower/upper Z-limits of the Vertex Group or the mesh if no Vertex Group is given"); | ||||
| RNA_def_property_update(prop, 0, "rna_Modifier_update"); | RNA_def_property_update(prop, 0, "rna_Modifier_update"); | ||||
| prop = RNA_def_property(srna, "lock_x", PROP_BOOLEAN, PROP_NONE); | prop = RNA_def_property(srna, "lock_x", PROP_BOOLEAN, PROP_NONE); | ||||
| Context not available. | |||||