Code cleanup: de-duplicate switch statement, style edits

This commit is contained in:
2014-03-13 06:18:25 +11:00
parent deef641878
commit 032b42d48d
7 changed files with 32 additions and 29 deletions

View File

@@ -3430,13 +3430,13 @@ static void def_sh_tex_image(StructRNA *srna)
static const EnumPropertyItem prop_interpolation_items[] = {
{SHD_INTERP_LINEAR, "Linear", 0, "Linear",
"Linear interpolation"},
"Linear interpolation"},
{SHD_INTERP_CLOSEST, "Closest", 0, "Closest",
"No interpolation (sample closest texel"},
{SHD_INTERP_CUBIC, "Cubic", 0, "Cubic",
"Cubic interpolation (OSL only)"},
{SHD_INTERP_SMART, "Smart", 0, "Smart",
"Bicubic when maxifying, else bilinear (OSL only)"},
"No interpolation (sample closest texel"},
{SHD_INTERP_CUBIC, "Cubic", 0, "Cubic",
"Cubic interpolation (OSL only)"},
{SHD_INTERP_SMART, "Smart", 0, "Smart",
"Bicubic when maxifying, else bilinear (OSL only)"},
{0, NULL, 0, NULL, NULL}
};