Freestyle: Fix for dashed lines when applied to invisible stroke segments.

Dashed lines were resetting stroke segment visibility by mistake (making invisible segments
visible, for example when applied to the results of square blueprint geometry modifier).
This commit is contained in:
Tamito Kajiyama 2014-05-09 20:47:05 +09:00
parent c4e277d53b
commit 3a0be8a0d6
1 changed files with 2 additions and 1 deletions

View File

@ -955,7 +955,8 @@ class DashedLineShader(StrokeShader):
if index == len(self._pattern):
index = 0
visible = not visible
it.object.attribute.visible = visible
if not visible:
it.object.attribute.visible = visible
it.increment()