Code cleanup: de-duplicate switch statement, style edits
This commit is contained in:
@@ -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}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user