World: Use enum for mist falloff parameter.
This commit is contained in:
@@ -163,6 +163,12 @@ enum {
|
||||
WO_AOMUL = 3,
|
||||
};
|
||||
|
||||
enum {
|
||||
WO_MIST_QUADRATIC = 0,
|
||||
WO_MIST_LINEAR = 1,
|
||||
WO_MIST_INVERSE_QUADRATIC = 2,
|
||||
};
|
||||
|
||||
/* ao_samp_method - methods for sampling the AO hemi */
|
||||
#define WO_AOSAMP_CONSTANT 0
|
||||
#define WO_AOSAMP_HALTON 1
|
||||
|
||||
@@ -396,9 +396,9 @@ static void rna_def_world_mist(BlenderRNA *brna)
|
||||
PropertyRNA *prop;
|
||||
|
||||
static const EnumPropertyItem falloff_items[] = {
|
||||
{0, "QUADRATIC", 0, "Quadratic", "Use quadratic progression"},
|
||||
{1, "LINEAR", 0, "Linear", "Use linear progression"},
|
||||
{2, "INVERSE_QUADRATIC", 0, "Inverse Quadratic", "Use inverse quadratic progression"},
|
||||
{WO_MIST_QUADRATIC, "QUADRATIC", 0, "Quadratic", "Use quadratic progression"},
|
||||
{WO_MIST_LINEAR, "LINEAR", 0, "Linear", "Use linear progression"},
|
||||
{WO_MIST_INVERSE_QUADRATIC, "INVERSE_QUADRATIC", 0, "Inverse Quadratic", "Use inverse quadratic progression"},
|
||||
{0, NULL, 0, NULL, NULL}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user