Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2009-03-25 21:21:48 +0300
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2009-03-25 21:21:48 +0300
commit232edfa34ea2a069c34036c801f97146818bee2e (patch)
treea2e8b463b377442ba1ad15922cb26b224388dfbe /source/blender
parent346ea41766b3143545baa14f80451bf54c9c6f17 (diff)
RNA: fix for texture patch compile on MSVC, mixing declarations and code.
Diffstat (limited to 'source/blender')
-rw-r--r--source/blender/makesrna/intern/rna_texture.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/makesrna/intern/rna_texture.c b/source/blender/makesrna/intern/rna_texture.c
index e975c80a440..e8fd753d16a 100644
--- a/source/blender/makesrna/intern/rna_texture.c
+++ b/source/blender/makesrna/intern/rna_texture.c
@@ -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);