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:
authorThomas Dinges <blender@dingto.org>2010-04-04 16:09:59 +0400
committerThomas Dinges <blender@dingto.org>2010-04-04 16:09:59 +0400
commitd574e8b82617c389de85a09fcf9b0f14172466a8 (patch)
tree14ae0ae8d3939d471e9b4c8ef406dcd7336b1027 /source/blender/makesrna/intern/rna_texture.c
parent426aaaa0a29ea2ddaf008142752fc1efb91033f0 (diff)
2.5 Preview Render:
* Converted Type Buttons (Flat, Cube, Monkey etc.) in Material Preview to RNA. * "Alpha" option in texture Preview Render is back!
Diffstat (limited to 'source/blender/makesrna/intern/rna_texture.c')
-rw-r--r--source/blender/makesrna/intern/rna_texture.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_texture.c b/source/blender/makesrna/intern/rna_texture.c
index 69d1884e756..ba91cdf690a 100644
--- a/source/blender/makesrna/intern/rna_texture.c
+++ b/source/blender/makesrna/intern/rna_texture.c
@@ -1725,6 +1725,12 @@ static void rna_def_texture(BlenderRNA *brna)
RNA_def_property_ui_text(prop, "Factor Blue", "");
RNA_def_property_update(prop, 0, "rna_Texture_update");
+ /* Alpha for preview render */
+ prop= RNA_def_property(srna, "use_preview_alpha", PROP_BOOLEAN, PROP_NONE);
+ RNA_def_property_boolean_sdna(prop, NULL, "flag", TEX_PRV_ALPHA);
+ RNA_def_property_ui_text(prop, "Show Alpha", "Show Alpha in Preview Render");
+ RNA_def_property_update(prop, 0, "rna_Texture_update");
+
/* nodetree */
prop= RNA_def_property(srna, "use_nodes", PROP_BOOLEAN, PROP_NONE);
RNA_def_property_boolean_sdna(prop, NULL, "use_nodes", 1);