Rename all enums called "prop_mode_items" into something more sensible.
This commit is contained in:
@@ -157,7 +157,7 @@ static void rna_def_fmodifier_generator(BlenderRNA *brna)
|
||||
StructRNA *srna;
|
||||
PropertyRNA *prop;
|
||||
|
||||
static EnumPropertyItem prop_mode_items[] = {
|
||||
static EnumPropertyItem generator_mode_items[] = {
|
||||
{FCM_GENERATOR_POLYNOMIAL, "POLYNOMIAL", 0, "Expanded Polynomial", ""},
|
||||
{FCM_GENERATOR_POLYNOMIAL_FACTORISED, "POLYNOMIAL_FACTORISED", 0, "Factorised Polynomial", ""},
|
||||
{0, NULL, 0, NULL, NULL}};
|
||||
@@ -174,7 +174,7 @@ static void rna_def_fmodifier_generator(BlenderRNA *brna)
|
||||
|
||||
// XXX this has a special validation func
|
||||
prop= RNA_def_property(srna, "mode", PROP_ENUM, PROP_NONE);
|
||||
RNA_def_property_enum_items(prop, prop_mode_items);
|
||||
RNA_def_property_enum_items(prop, generator_mode_items);
|
||||
RNA_def_property_ui_text(prop, "Mode", "Type of generator to use.");
|
||||
RNA_def_property_update(prop, NC_ANIMATION|ND_KEYFRAME_EDIT, NULL);
|
||||
|
||||
|
||||
@@ -1694,7 +1694,7 @@ static void rna_def_modifier_shrinkwrap(BlenderRNA *brna)
|
||||
StructRNA *srna;
|
||||
PropertyRNA *prop;
|
||||
|
||||
static EnumPropertyItem prop_mode_items[] = {
|
||||
static EnumPropertyItem shrink_type_items[] = {
|
||||
{MOD_SHRINKWRAP_NEAREST_SURFACE, "NEAREST_SURFACEPOINT", 0, "Nearest Surface Point", ""},
|
||||
{MOD_SHRINKWRAP_PROJECT, "PROJECT", 0, "Project", ""},
|
||||
{MOD_SHRINKWRAP_NEAREST_VERTEX, "NEAREST_VERTEX", 0, "Nearest Vertex", ""},
|
||||
@@ -1707,7 +1707,7 @@ static void rna_def_modifier_shrinkwrap(BlenderRNA *brna)
|
||||
|
||||
prop= RNA_def_property(srna, "mode", PROP_ENUM, PROP_NONE);
|
||||
RNA_def_property_enum_sdna(prop, NULL, "shrinkType");
|
||||
RNA_def_property_enum_items(prop, prop_mode_items);
|
||||
RNA_def_property_enum_items(prop, shrink_type_items);
|
||||
RNA_def_property_ui_text(prop, "Mode", "");
|
||||
RNA_def_property_update(prop, 0, "rna_Modifier_update");
|
||||
|
||||
@@ -1806,7 +1806,7 @@ static void rna_def_modifier_mask(BlenderRNA *brna)
|
||||
StructRNA *srna;
|
||||
PropertyRNA *prop;
|
||||
|
||||
static EnumPropertyItem prop_mode_items[] = {
|
||||
static EnumPropertyItem modifier_mask_mode_items[] = {
|
||||
{MOD_MASK_MODE_VGROUP, "VERTEX_GROUP", 0, "Vertex Group", ""},
|
||||
{MOD_MASK_MODE_ARM, "ARMATURE", 0, "Armature", ""},
|
||||
{0, NULL, 0, NULL, NULL}};
|
||||
@@ -1817,7 +1817,7 @@ static void rna_def_modifier_mask(BlenderRNA *brna)
|
||||
RNA_def_struct_ui_icon(srna, ICON_MOD_MASK);
|
||||
|
||||
prop= RNA_def_property(srna, "mode", PROP_ENUM, PROP_NONE);
|
||||
RNA_def_property_enum_items(prop, prop_mode_items);
|
||||
RNA_def_property_enum_items(prop, modifier_mask_mode_items);
|
||||
RNA_def_property_ui_text(prop, "Mode", "");
|
||||
RNA_def_property_update(prop, 0, "rna_Modifier_update");
|
||||
|
||||
@@ -1845,7 +1845,7 @@ static void rna_def_modifier_simpledeform(BlenderRNA *brna)
|
||||
StructRNA *srna;
|
||||
PropertyRNA *prop;
|
||||
|
||||
static EnumPropertyItem prop_mode_items[] = {
|
||||
static EnumPropertyItem simple_deform_mode_items[] = {
|
||||
{MOD_SIMPLEDEFORM_MODE_TWIST, "TWIST", 0, "Twist", ""},
|
||||
{MOD_SIMPLEDEFORM_MODE_BEND, "BEND", 0, "Bend", ""},
|
||||
{MOD_SIMPLEDEFORM_MODE_TAPER, "TAPER", 0, "Taper", ""},
|
||||
@@ -1858,7 +1858,7 @@ static void rna_def_modifier_simpledeform(BlenderRNA *brna)
|
||||
RNA_def_struct_ui_icon(srna, ICON_MOD_SIMPLEDEFORM);
|
||||
|
||||
prop= RNA_def_property(srna, "mode", PROP_ENUM, PROP_NONE);
|
||||
RNA_def_property_enum_items(prop, prop_mode_items);
|
||||
RNA_def_property_enum_items(prop, simple_deform_mode_items);
|
||||
RNA_def_property_ui_text(prop, "Mode", "");
|
||||
RNA_def_property_update(prop, 0, "rna_Modifier_update");
|
||||
|
||||
|
||||
@@ -231,7 +231,7 @@ static void rna_def_vertex_paint(BlenderRNA *brna)
|
||||
{
|
||||
StructRNA *srna;
|
||||
PropertyRNA *prop;
|
||||
static EnumPropertyItem prop_mode_items[] = {
|
||||
static EnumPropertyItem brush_mode_items[] = {
|
||||
{0, "MIX", 0, "Mix", "Use mix blending mode while painting."},
|
||||
{1, "ADD", 0, "Add", "Use add blending mode while painting."},
|
||||
{2, "SUB", 0, "Subtract", "Use subtract blending mode while painting."},
|
||||
@@ -246,7 +246,7 @@ static void rna_def_vertex_paint(BlenderRNA *brna)
|
||||
RNA_def_struct_ui_text(srna, "Vertex Paint", "Properties of vertex and weight paint mode.");
|
||||
|
||||
prop= RNA_def_property(srna, "mode", PROP_ENUM, PROP_NONE);
|
||||
RNA_def_property_enum_items(prop, prop_mode_items);
|
||||
RNA_def_property_enum_items(prop, brush_mode_items);
|
||||
RNA_def_property_ui_text(prop, "Brush Mode", "Mode in which color is painted.");
|
||||
|
||||
prop= RNA_def_property(srna, "all_faces", PROP_BOOLEAN, PROP_NONE);
|
||||
|
||||
@@ -2013,7 +2013,7 @@ void WM_radial_control_string(wmOperator *op, char str[], int maxlen)
|
||||
just sets up the common parts of the radial control op. **/
|
||||
void WM_OT_radial_control_partial(wmOperatorType *ot)
|
||||
{
|
||||
static EnumPropertyItem prop_mode_items[] = {
|
||||
static EnumPropertyItem radial_mode_items[] = {
|
||||
{WM_RADIALCONTROL_SIZE, "SIZE", 0, "Size", ""},
|
||||
{WM_RADIALCONTROL_STRENGTH, "STRENGTH", 0, "Strength", ""},
|
||||
{WM_RADIALCONTROL_ANGLE, "ANGLE", 0, "Angle", ""},
|
||||
@@ -2026,7 +2026,7 @@ void WM_OT_radial_control_partial(wmOperatorType *ot)
|
||||
RNA_def_float(ot->srna, "new_value", 0, 0, FLT_MAX, "New Value", "", 0, FLT_MAX);
|
||||
|
||||
/* Should be set before calling operator */
|
||||
RNA_def_enum(ot->srna, "mode", prop_mode_items, 0, "Mode", "");
|
||||
RNA_def_enum(ot->srna, "mode", radial_mode_items, 0, "Mode", "");
|
||||
|
||||
/* Internal */
|
||||
RNA_def_int_vector(ot->srna, "initial_mouse", 2, NULL, INT_MIN, INT_MAX, "initial_mouse", "", INT_MIN, INT_MAX);
|
||||
|
||||
Reference in New Issue
Block a user