Revision: 19917
          
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=19917
Author:   campbellbarton
Date:     2009-04-24 13:36:48 +0200 (Fri, 24 Apr 2009)

Log Message:
-----------
patch from Thomas Dinges, falloff out of the stars struct into the mist.

Modified Paths:
--------------
    branches/blender2.5/blender/source/blender/makesrna/intern/rna_world.c

Modified: branches/blender2.5/blender/source/blender/makesrna/intern/rna_world.c
===================================================================
--- branches/blender2.5/blender/source/blender/makesrna/intern/rna_world.c      
2009-04-24 07:45:17 UTC (rev 19916)
+++ branches/blender2.5/blender/source/blender/makesrna/intern/rna_world.c      
2009-04-24 11:36:48 UTC (rev 19917)
@@ -237,6 +237,12 @@
 {
        StructRNA *srna;
        PropertyRNA *prop;
+       
+       static EnumPropertyItem falloff_items[] = {
+               {0, "QUADRATIC", "Quadratic", "Mist uses quadratic 
progression."},
+               {1, "LINEAR", "Linear", "Mist uses linear progression."},
+               {2, "INVERSE_QUADRATIC", "Inverse Quadratic", "Mist uses 
inverse quadratic progression."},
+               {0, NULL, NULL, NULL}};
 
        srna= RNA_def_struct(brna, "WorldMistSettings", NULL);
        RNA_def_struct_sdna(srna, "World");
@@ -268,6 +274,11 @@
        RNA_def_property_float_sdna(prop, NULL, "misthi");
        RNA_def_property_range(prop, 0, 100);
        RNA_def_property_ui_text(prop, "Height", "Factor for a less dense mist 
with increasing height.");
+       
+       prop= RNA_def_property(srna, "falloff", PROP_ENUM, PROP_NONE);
+       RNA_def_property_enum_sdna(prop, NULL, "mistype");
+       RNA_def_property_enum_items(prop, falloff_items);
+       RNA_def_property_ui_text(prop, "Falloff", "Falloff method for mist.");
 }
 
 static void rna_def_world_stars(BlenderRNA *brna)
@@ -275,12 +286,6 @@
        StructRNA *srna;
        PropertyRNA *prop;
 
-       static EnumPropertyItem falloff_items[] = {
-               {0, "QUADRATIC", "Quadratic", "Mist uses quadratic 
progression."},
-               {1, "LINEAR", "Linear", "Mist uses linear progression."},
-               {2, "INVERSE_QUADRATIC", "Inverse Quadratic", "Mist uses 
inverse quadratic progression."},
-               {0, NULL, NULL, NULL}};
-
        srna= RNA_def_struct(brna, "WorldStarsSettings", NULL);
        RNA_def_struct_sdna(srna, "World");
        RNA_def_struct_nested(brna, srna, "World");
@@ -309,12 +314,7 @@
        RNA_def_property_float_sdna(prop, NULL, "starcolnoise");
        RNA_def_property_range(prop, 0, 1);
        RNA_def_property_ui_text(prop, "Color Randomization", "Randomizes star 
color.");
-
-       prop= RNA_def_property(srna, "falloff", PROP_ENUM, PROP_NONE);
-       RNA_def_property_enum_sdna(prop, NULL, "mistype");
-       RNA_def_property_enum_items(prop, falloff_items);
-       RNA_def_property_ui_text(prop, "Falloff", "Falloff method for mist.");
-
+       
        /* unused
        prop= RNA_def_property(srna, "color", PROP_FLOAT, PROP_COLOR);
        RNA_def_property_float_sdna(prop, NULL, "starr");


_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to