[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [39615] branches/soc-2008-mxcurioni/ release/scripts/freestyle/style_modules/parameter_editor.py: Fix for round and square tips not working.

Tamito Kajiyama rd6t-kjym at asahi-net.or.jp
Mon Aug 22 14:42:57 CEST 2011


Revision: 39615
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=39615
Author:   kjym3
Date:     2011-08-22 12:42:56 +0000 (Mon, 22 Aug 2011)
Log Message:
-----------
Fix for round and square tips not working.  Bug reported by tungee, thanks!

Modified Paths:
--------------
    branches/soc-2008-mxcurioni/release/scripts/freestyle/style_modules/parameter_editor.py

Modified: branches/soc-2008-mxcurioni/release/scripts/freestyle/style_modules/parameter_editor.py
===================================================================
--- branches/soc-2008-mxcurioni/release/scripts/freestyle/style_modules/parameter_editor.py	2011-08-22 12:24:14 UTC (rev 39614)
+++ branches/soc-2008-mxcurioni/release/scripts/freestyle/style_modules/parameter_editor.py	2011-08-22 12:42:56 UTC (rev 39615)
@@ -847,10 +847,6 @@
         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 @@
             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)




More information about the Bf-blender-cvs mailing list