UI: tweak order of shading mode display
Order 'Matcaps' first instead of 'Flat'. Order 'Material' first instead of 'Single'. While we don't have to order defaults first, it's strange to have obscure options first (in the case of 'Flat').
This commit is contained in:
parent
6ca172cdce
commit
ff3a20d1bc
|
@ -346,15 +346,15 @@ const EnumPropertyItem rna_enum_shading_type_items[] = {
|
|||
};
|
||||
|
||||
static const EnumPropertyItem rna_enum_viewport_lighting_items[] = {
|
||||
{V3D_LIGHTING_FLAT, "FLAT", 0, "Flat", "Display using flat lighting"},
|
||||
{V3D_LIGHTING_STUDIO, "STUDIO", 0, "Studio", "Display using studio lighting"},
|
||||
{V3D_LIGHTING_MATCAP, "MATCAP", 0, "MatCap", "Display using matcap material and lighting"},
|
||||
{V3D_LIGHTING_STUDIO, "STUDIO", 0, "Studio", "Display using studio lighting"},
|
||||
{V3D_LIGHTING_FLAT, "FLAT", 0, "Flat", "Display using flat lighting"},
|
||||
{0, NULL, 0, NULL, NULL},
|
||||
};
|
||||
|
||||
static const EnumPropertyItem rna_enum_shading_color_type_items[] = {
|
||||
{V3D_SHADING_SINGLE_COLOR, "SINGLE", 0, "Single", "Show scene in a single color"},
|
||||
{V3D_SHADING_MATERIAL_COLOR, "MATERIAL", 0, "Material", "Show material color"},
|
||||
{V3D_SHADING_SINGLE_COLOR, "SINGLE", 0, "Single", "Show scene in a single color"},
|
||||
{V3D_SHADING_OBJECT_COLOR, "OBJECT", 0, "Object", "Show object color"},
|
||||
{V3D_SHADING_RANDOM_COLOR, "RANDOM", 0, "Random", "Show random object color"},
|
||||
{V3D_SHADING_VERTEX_COLOR, "VERTEX", 0, "Vertex", "Show active vertex color"},
|
||||
|
@ -1082,10 +1082,10 @@ static const EnumPropertyItem *rna_View3DShading_color_type_itemf(bContext *UNUS
|
|||
EnumPropertyItem *item = NULL;
|
||||
|
||||
if (shading->type == OB_SOLID) {
|
||||
RNA_enum_items_add_value(
|
||||
&item, &totitem, rna_enum_shading_color_type_items, V3D_SHADING_SINGLE_COLOR);
|
||||
RNA_enum_items_add_value(
|
||||
&item, &totitem, rna_enum_shading_color_type_items, V3D_SHADING_MATERIAL_COLOR);
|
||||
RNA_enum_items_add_value(
|
||||
&item, &totitem, rna_enum_shading_color_type_items, V3D_SHADING_SINGLE_COLOR);
|
||||
RNA_enum_items_add_value(
|
||||
&item, &totitem, rna_enum_shading_color_type_items, V3D_SHADING_OBJECT_COLOR);
|
||||
RNA_enum_items_add_value(
|
||||
|
|
Loading…
Reference in New Issue