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:
parent
c4e277d53b
commit
3a0be8a0d6
@ -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()
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user