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>2011-08-22 16:42:56 +0400
committerTamito Kajiyama <rd6t-kjym@asahi-net.or.jp>2011-08-22 16:42:56 +0400
commitf631d3aaa938df9af10c4cb747601d7b22724d7d (patch)
treee967277e7032d7a923618e6990971016b1712f04 /release/scripts/freestyle/style_modules/parameter_editor.py
parent1a4b7f819594991bd60c4f4cdbe59da8479bd681 (diff)
Fix for round and square tips not working. Bug reported by tungee, thanks!
Diffstat (limited to 'release/scripts/freestyle/style_modules/parameter_editor.py')
-rw-r--r--release/scripts/freestyle/style_modules/parameter_editor.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/release/scripts/freestyle/style_modules/parameter_editor.py b/release/scripts/freestyle/style_modules/parameter_editor.py
index 6d20fa790f1..1525f411cf7 100644
--- a/release/scripts/freestyle/style_modules/parameter_editor.py
+++ b/release/scripts/freestyle/style_modules/parameter_editor.py
@@ -847,10 +847,6 @@ def process(layer_name, lineset_name):
elif m.type == "TIP_REMOVER":
shaders_list.append(TipRemoverShader(
m.tip_length))
- if linestyle.caps == "ROUND":
- shaders_list.append(RoundCapShader())
- elif linestyle.caps == "SQUARE":
- shaders_list.append(SquareCapShader())
color = linestyle.color
shaders_list.append(ConstantColorShader(color.r, color.g, color.b, linestyle.alpha))
shaders_list.append(ConstantThicknessShader(linestyle.thickness))
@@ -909,5 +905,9 @@ def process(layer_name, lineset_name):
shaders_list.append(ThicknessMaterialShader(
m.blend, m.influence, m.mapping, m.invert, m.curve,
m.material_attr, m.value_min, m.value_max))
+ if linestyle.caps == "ROUND":
+ shaders_list.append(RoundCapShader())
+ elif linestyle.caps == "SQUARE":
+ shaders_list.append(SquareCapShader())
# create strokes using the shaders list
Operators.create(TrueUP1D(), shaders_list)