[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [19412] branches/blender2.5/blender/source /blender/makesrna/intern/rna_texture.c: RNA: fix for texture patch compile on MSVC, mixing declarations and code.

Brecht Van Lommel brecht at blender.org
Wed Mar 25 19:21:48 CET 2009


Revision: 19412
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=19412
Author:   blendix
Date:     2009-03-25 19:21:48 +0100 (Wed, 25 Mar 2009)

Log Message:
-----------
RNA: fix for texture patch compile on MSVC, mixing declarations and code.

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

Modified: branches/blender2.5/blender/source/blender/makesrna/intern/rna_texture.c
===================================================================
--- branches/blender2.5/blender/source/blender/makesrna/intern/rna_texture.c	2009-03-25 17:12:25 UTC (rev 19411)
+++ branches/blender2.5/blender/source/blender/makesrna/intern/rna_texture.c	2009-03-25 18:21:48 UTC (rev 19412)
@@ -445,10 +445,6 @@
 	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 @@
 	{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);





More information about the Bf-blender-cvs mailing list