[Bf-blender-cvs] [ece64c7] master: Freestyle: minor UI improvements.
Tamito Kajiyama
noreply at git.blender.org
Thu Apr 24 16:45:50 CEST 2014
Commit: ece64c7ffdc82cdf2d129f73112470a2eca598b6
Author: Tamito Kajiyama
Date: Thu Apr 24 23:27:58 2014 +0900
https://developer.blender.org/rBece64c7ffdc82cdf2d129f73112470a2eca598b6
Freestyle: minor UI improvements.
* The button icon for jumping to the Render Layers tab of the Properties context is
now RENDERLAYERS. Previous icon BUTS was too general.
* Thickness position options are grayed out if not applicable. These options are applied
only when plain chaining is used with the Same Object option enabled.
===================================================================
M release/scripts/startup/bl_ui/properties_freestyle.py
===================================================================
diff --git a/release/scripts/startup/bl_ui/properties_freestyle.py b/release/scripts/startup/bl_ui/properties_freestyle.py
index 207e6bc..63e4f4a 100644
--- a/release/scripts/startup/bl_ui/properties_freestyle.py
+++ b/release/scripts/startup/bl_ui/properties_freestyle.py
@@ -61,7 +61,7 @@ class RENDER_PT_freestyle(RenderFreestyleButtonsPanel, Panel):
row = layout.row()
row.label(text="Line style settings are in the Render Layers tab")
- row.operator("wm.properties_context_change", text="", icon='BUTS').context = 'RENDER_LAYER'
+ row.operator("wm.properties_context_change", text="", icon='RENDERLAYERS').context = 'RENDER_LAYER'
# Render layer properties
@@ -654,9 +654,11 @@ class RENDERLAYER_PT_freestyle_linestyle(RenderLayerFreestyleEditorButtonsPanel,
row = col.row()
row.label(text="Base Thickness:")
row.prop(linestyle, "thickness")
- row = col.row()
+ subcol = col.column()
+ subcol.active = linestyle.chaining == 'PLAIN' and linestyle.use_same_object
+ row = subcol.row()
row.prop(linestyle, "thickness_position", expand=True)
- row = col.row()
+ row = subcol.row()
row.prop(linestyle, "thickness_ratio")
row.active = (linestyle.thickness_position == 'RELATIVE')
col = layout.column()
More information about the Bf-blender-cvs
mailing list