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:
authorTamito Kajiyama <rd6t-kjym@asahi-net.or.jp>2014-04-18 10:11:20 +0400
committerTamito Kajiyama <rd6t-kjym@asahi-net.or.jp>2014-04-18 10:11:20 +0400
commit5a3fbc8af7645c81ef59d9bb8707823d570807e3 (patch)
tree438e47ad5babef7f7874c2f6f4bcf4ee917ed9be /release
parent4a837141c3a731e483db3c469e0dacf383f1ddd3 (diff)
Freestyle: minor changes to the UI layout of line style options.
Toggle buttons are now placed to the left of those labels separating sets of line style options, so as to save some space (in line with the new UI elements added in the commit f60a66f41784de388a01c4c882c969730d675375).
Diffstat (limited to 'release')
-rw-r--r--release/scripts/startup/bl_ui/properties_freestyle.py30
1 files changed, 13 insertions, 17 deletions
diff --git a/release/scripts/startup/bl_ui/properties_freestyle.py b/release/scripts/startup/bl_ui/properties_freestyle.py
index bedee24d8ef..207e6bc3087 100644
--- a/release/scripts/startup/bl_ui/properties_freestyle.py
+++ b/release/scripts/startup/bl_ui/properties_freestyle.py
@@ -534,20 +534,18 @@ class RENDERLAYER_PT_freestyle_linestyle(RenderLayerFreestyleEditorButtonsPanel,
row.prop(linestyle, "panel", expand=True)
if linestyle.panel == 'STROKES':
## Chaining
- layout.label(text="Chaining:")
+ layout.prop(linestyle, "use_chaining", text="Chaining:")
split = layout.split(align=True)
+ split.active = linestyle.use_chaining
# First column
col = split.column()
- col.prop(linestyle, "use_chaining", text="Enable Chaining")
- sub = col.row()
- sub.active = linestyle.use_chaining
- sub.prop(linestyle, "use_same_object")
- # Second column
- col = split.column()
col.active = linestyle.use_chaining
col.prop(linestyle, "chaining", text="")
if linestyle.chaining == 'SKETCHY':
col.prop(linestyle, "rounds")
+ # Second column
+ col = split.column()
+ col.prop(linestyle, "use_same_object")
## Splitting
layout.label(text="Splitting:")
@@ -621,17 +619,15 @@ class RENDERLAYER_PT_freestyle_linestyle(RenderLayerFreestyleEditorButtonsPanel,
row.prop(linestyle, "caps", expand=True)
## Dashed lines
- layout.label(text="Dashed Line:")
+ layout.prop(linestyle, "use_dashed_line", text="Dashed Line:")
row = layout.row(align=True)
- row.prop(linestyle, "use_dashed_line", text="")
- sub = row.row(align=True)
- sub.active = linestyle.use_dashed_line
- sub.prop(linestyle, "dash1", text="D1")
- sub.prop(linestyle, "gap1", text="G1")
- sub.prop(linestyle, "dash2", text="D2")
- sub.prop(linestyle, "gap2", text="G2")
- sub.prop(linestyle, "dash3", text="D3")
- sub.prop(linestyle, "gap3", text="G3")
+ row.active = linestyle.use_dashed_line
+ row.prop(linestyle, "dash1", text="D1")
+ row.prop(linestyle, "gap1", text="G1")
+ row.prop(linestyle, "dash2", text="D2")
+ row.prop(linestyle, "gap2", text="G2")
+ row.prop(linestyle, "dash3", text="D3")
+ row.prop(linestyle, "gap3", text="G3")
elif linestyle.panel == 'COLOR':
col = layout.column()