RNA: fix for texture patch compile on MSVC, mixing declarations and code.
authorBrecht Van Lommel <brechtvanlommel@pandora.be>
Wed, 25 Mar 2009 18:21:48 +0000 (18:21 +0000)
committerBrecht Van Lommel <brechtvanlommel@pandora.be>
Wed, 25 Mar 2009 18:21:48 +0000 (18:21 +0000)
source/blender/makesrna/intern/rna_texture.c

index e975c80a440f53330e8dbcfa32982f6f0b13774e..e8fd753d16a4508f96f157b029863d8b8b7a7a21 100644 (file)
@@ -445,10 +445,6 @@ static void rna_def_texture_marble(BlenderRNA *brna)
        StructRNA *srna;
        PropertyRNA *prop;
 
-       srna= RNA_def_struct(brna, "MarbleTexture", "Texture");
-       RNA_def_struct_ui_text(srna, "Marble Texture", "Procedural noise texture.");
-       RNA_def_struct_sdna(srna, "Tex");
-
        static EnumPropertyItem prop_marble_stype[] = {
        {TEX_SOFT, "SOFT", "Soft", "Uses soft marble"},
        {TEX_SHARP, "SHARP", "Sharp", "Uses more clearly defined marble"},
@@ -463,6 +459,10 @@ static void rna_def_texture_marble(BlenderRNA *brna)
        {0, NULL, NULL, NULL}
        };
 
+       srna= RNA_def_struct(brna, "MarbleTexture", "Texture");
+       RNA_def_struct_ui_text(srna, "Marble Texture", "Procedural noise texture.");
+       RNA_def_struct_sdna(srna, "Tex");
+
        prop= RNA_def_property(srna, "noise_size", PROP_FLOAT, PROP_NONE);
        RNA_def_property_float_sdna(prop, NULL, "noisesize");
        RNA_def_property_range(prop, 0.0001, FLT_MAX);