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:
authorLukas Toenne <lukas.toenne@googlemail.com>2011-11-20 18:16:41 +0400
committerLukas Toenne <lukas.toenne@googlemail.com>2011-11-20 18:16:41 +0400
commit17b113c784aa30cf7ea06f0970a4427620fef4dc (patch)
tree737dbb33a1ca3cec098a6e2bae0c27e3a36e2b28 /release/scripts
parent9000db36312cdc514f2ffd967148eef13ed2e67f (diff)
Option to rename the vertex color data layer used by Ocean modifier for foam. The modifier outputs foam values to both textures and a (temporary) vertex data layer. This layer was unnamed before, which makes it impossible to access in shader nodes. Now the user can input a custom name in the modifier panel, then use that same name in a shader input node to access foam values.
http://www.pasteall.org/pic/21120
Diffstat (limited to 'release/scripts')
-rw-r--r--release/scripts/startup/bl_ui/properties_data_modifier.py11
1 files changed, 7 insertions, 4 deletions
diff --git a/release/scripts/startup/bl_ui/properties_data_modifier.py b/release/scripts/startup/bl_ui/properties_data_modifier.py
index e685de416ed..52b5ed5f36e 100644
--- a/release/scripts/startup/bl_ui/properties_data_modifier.py
+++ b/release/scripts/startup/bl_ui/properties_data_modifier.py
@@ -455,11 +455,14 @@ class DATA_PT_modifiers(ModifierButtonsPanel, Panel):
layout.prop(md, "use_normals")
+ layout.prop(md, "use_foam")
row = layout.row()
- row.prop(md, "use_foam")
- sub = row.row()
- sub.active = md.use_foam
- sub.prop(md, "foam_coverage", text="Coverage")
+ row.active = md.use_foam
+ col = row.column()
+ col.prop(md, "foam_coverage", text="Coverage")
+ col = row.column()
+ col.label("Foam Data Layer Name")
+ col.prop(md, "foam_layer_name", text="")
layout.separator()