diff options
-rw-r--r-- | release/scripts/freestyle/style_modules/parameter_editor.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/release/scripts/freestyle/style_modules/parameter_editor.py b/release/scripts/freestyle/style_modules/parameter_editor.py index 77710e08ece..6b7f57cbce1 100644 --- a/release/scripts/freestyle/style_modules/parameter_editor.py +++ b/release/scripts/freestyle/style_modules/parameter_editor.py @@ -184,7 +184,7 @@ def iter_t2d_along_stroke(stroke): p = it.object.point distance += (prev - p).length prev = p.copy() # need a copy because the point can be altered - t = min(distance / total, 1.0) + t = min(distance / total, 1.0) if total > 0.0 else 0.0 yield it, t it.increment() |