[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [20415] branches/blender2.5/blender: * Small tweaks to texture panels
Matt Ebb
matt at mke3.net
Tue May 26 04:49:49 CEST 2009
Revision: 20415
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=20415
Author: broken
Date: 2009-05-26 04:49:46 +0200 (Tue, 26 May 2009)
Log Message:
-----------
* Small tweaks to texture panels
Modified Paths:
--------------
branches/blender2.5/blender/release/ui/buttons_texture.py
branches/blender2.5/blender/source/blender/makesrna/intern/rna_texture.c
Modified: branches/blender2.5/blender/release/ui/buttons_texture.py
===================================================================
--- branches/blender2.5/blender/release/ui/buttons_texture.py 2009-05-26 00:14:22 UTC (rev 20414)
+++ branches/blender2.5/blender/release/ui/buttons_texture.py 2009-05-26 02:49:46 UTC (rev 20415)
@@ -34,8 +34,8 @@
layout.itemR(tex, "stype", expand=True)
layout.itemL(text="Noise:")
+ layout.itemR(tex, "noise_type", text="Type", expand=True)
layout.itemR(tex, "noise_basis", text="Basis")
- layout.itemR(tex, "noise_type", text="Type", expand=True)
col = layout.column_flow()
col.itemR(tex, "noise_size", text="Size")
@@ -54,11 +54,11 @@
layout = self.layout
tex = context.active_object.active_material.active_texture.texture
+ layout.itemR(tex, "stype", expand=True)
layout.itemR(tex, "noisebasis2", expand=True)
- layout.itemR(tex, "stype", expand=True)
layout.itemL(text="Noise:")
+ layout.itemR(tex, "noise_type", text="Type", expand=True)
layout.itemR(tex, "noise_basis", text="Basis")
- layout.itemR(tex, "noise_type", text="Type", expand=True)
col = layout.column_flow()
col.itemR(tex, "noise_size", text="Size")
@@ -80,8 +80,8 @@
layout.itemR(tex, "stype", expand=True)
layout.itemR(tex, "noisebasis2", expand=True)
layout.itemL(text="Noise:")
+ layout.itemR(tex, "noise_type", text="Type", expand=True)
layout.itemR(tex, "noise_basis", text="Basis")
- layout.itemR(tex, "noise_type", text="Type", expand=True)
col = layout.column_flow()
col.itemR(tex, "noise_size", text="Size")
@@ -134,8 +134,8 @@
layout.itemR(tex, "stype", expand=True)
layout.itemL(text="Noise:")
+ layout.itemR(tex, "noise_type", text="Type", expand=True)
layout.itemR(tex, "noise_basis", text="Basis")
- layout.itemR(tex, "noise_type", text="Type", expand=True)
row = layout.row()
row.itemR(tex, "noise_size", text="Size")
@@ -251,9 +251,11 @@
layout = self.layout
tex = context.active_object.active_material.active_texture.texture
+ layout.itemR(tex, "musgrave_type")
+
split = layout.split()
- sub = split.column()
+ sub = split.column()
sub.itemR(tex, "highest_dimension", text="Dimension")
sub.itemR(tex, "lacunarity")
sub.itemR(tex, "octaves")
@@ -265,8 +267,8 @@
sub.itemR(tex, "noise_intensity", text="Intensity")
layout.itemL(text="Noise:")
+
layout.itemR(tex, "noise_basis", text="Basis")
- layout.itemR(tex, "musgrave_type")
row = layout.row()
row.itemR(tex, "noise_size", text="Size")
@@ -286,13 +288,15 @@
tex = context.active_object.active_material.active_texture.texture
layout.itemR(tex, "distance_metric")
- layout.itemR(tex, "color_type")
+ layout.itemR(tex, "coloring")
split = layout.split()
sub = split.column()
- sub.itemR(tex, "minkovsky_exponent", text="Minkovsky")
+
sub.itemR(tex, "noise_intensity", text="Intensity")
+ if tex.distance_metric == 'MINKOVSKY':
+ sub.itemR(tex, "minkovsky_exponent", text="Exponent")
sub = split.column()
sub.itemR(tex, "feature_weights", slider=True)
@@ -317,9 +321,14 @@
layout.itemR(tex, "noise_distortion")
layout.itemR(tex, "noise_basis", text="Basis")
- row = layout.row()
- row.itemR(tex, "noise_size", text="Size")
- row.itemR(tex, "nabla")
+ split = layout.split()
+
+ sub = split.column()
+ sub.itemR(tex, "distortion_amount", text="Amount")
+ sub.itemR(tex, "noise_size", text="Size")
+
+ sub = split.column()
+ sub.itemR(tex, "nabla")
bpy.types.register(TEXTURE_PT_texture)
bpy.types.register(TEXTURE_PT_clouds)
Modified: branches/blender2.5/blender/source/blender/makesrna/intern/rna_texture.c
===================================================================
--- branches/blender2.5/blender/source/blender/makesrna/intern/rna_texture.c 2009-05-26 00:14:22 UTC (rev 20414)
+++ branches/blender2.5/blender/source/blender/makesrna/intern/rna_texture.c 2009-05-26 02:49:46 UTC (rev 20415)
@@ -345,8 +345,8 @@
{0, NULL, NULL, NULL}};
static EnumPropertyItem prop_noise_type[] = {
- {TEX_NOISESOFT, "SOFT_NOISE", "Soft Noise", ""},
- {TEX_NOISEPERL, "HARD_NOISE", "Hard Noise", ""},
+ {TEX_NOISESOFT, "SOFT_NOISE", "Soft", ""},
+ {TEX_NOISEPERL, "HARD_NOISE", "Hard", ""},
{0, NULL, NULL, NULL}};
@@ -356,7 +356,7 @@
PropertyRNA *prop;
static EnumPropertyItem prop_clouds_stype[] = {
- {TEX_DEFAULT, "DEFAULT", "Default", ""},
+ {TEX_DEFAULT, "GREYSCALE", "Greyscale", ""},
{TEX_COLOR, "COLOR", "Color", ""},
{0, NULL, NULL, NULL}};
@@ -406,12 +406,12 @@
static EnumPropertyItem prop_wood_stype[] = {
{TEX_BAND, "BANDS", "Bands", "Uses standard wood texture in bands"},
{TEX_RING, "RINGS", "Rings", "Uses wood texture in rings"},
- {TEX_BANDNOISE, "BANDNOISE", "BandNoise", "Adds noise to standard wood"},
- {TEX_RINGNOISE, "RINGNOISE", "RingNoise", "Adds noise to rings"},
+ {TEX_BANDNOISE, "BANDNOISE", "Band Noise", "Adds noise to standard wood"},
+ {TEX_RINGNOISE, "RINGNOISE", "Ring Noise", "Adds noise to rings"},
{0, NULL, NULL, NULL}};
static EnumPropertyItem prop_wood_noisebasis2[] = {
- {TEX_SIN, "SIN", "Sin", "Uses a sine wave to produce bands"},
+ {TEX_SIN, "SIN", "Sine", "Uses a sine wave to produce bands"},
{TEX_SAW, "SAW", "Saw", "Uses a saw wave to produce bands"},
{TEX_TRI, "TRI", "Tri", "Uses a triangle wave to produce bands"},
{0, NULL, NULL, NULL}};
@@ -877,7 +877,7 @@
{TEX_MINKOVSKY, "MINKOVSKY", "Minkovsky", ""},
{0, NULL, NULL, NULL}};
- static EnumPropertyItem prop_color_type_items[] = {
+ static EnumPropertyItem prop_coloring_items[] = {
/* XXX: OK names / descriptions? */
{TEX_INTENSITY, "INTENSITY", "Intensity", "Only calculate intensity."},
{TEX_COL1, "POSITION", "Position", "Color cells by position."},
@@ -905,10 +905,10 @@
RNA_def_property_enum_items(prop, prop_distance_metric_items);
RNA_def_property_ui_text(prop, "Distance Metric", "");
- prop= RNA_def_property(srna, "color_type", PROP_ENUM, PROP_NONE);
+ prop= RNA_def_property(srna, "coloring", PROP_ENUM, PROP_NONE);
RNA_def_property_enum_sdna(prop, NULL, "vn_coltype");
- RNA_def_property_enum_items(prop, prop_color_type_items);
- RNA_def_property_ui_text(prop, "Color Type", "");
+ RNA_def_property_enum_items(prop, prop_coloring_items);
+ RNA_def_property_ui_text(prop, "Coloring", "");
prop= RNA_def_property(srna, "noise_intensity", PROP_FLOAT, PROP_NONE);
RNA_def_property_float_sdna(prop, NULL, "ns_outscale");
More information about the Bf-blender-cvs
mailing list