From 1a7cdb29a73ce73e810a032fbd8aab5ddfd26325 Mon Sep 17 00:00:00 2001 From: Mario Voigt Date: Tue, 25 May 2021 11:21:43 +0200 Subject: [PATCH] small enhancements --- extensions/fablabchemnitz/ink_line_animator/line-animator.py | 2 +- extensions/fablabchemnitz/move_path_node/move_path_node.inx | 2 +- extensions/fablabchemnitz/move_path_node/move_path_node.py | 5 +++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/extensions/fablabchemnitz/ink_line_animator/line-animator.py b/extensions/fablabchemnitz/ink_line_animator/line-animator.py index 2cabbb51..78bda6cb 100644 --- a/extensions/fablabchemnitz/ink_line_animator/line-animator.py +++ b/extensions/fablabchemnitz/ink_line_animator/line-animator.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """ line animator - create CSS3 animations that look as if someone is drawing them by hand diff --git a/extensions/fablabchemnitz/move_path_node/move_path_node.inx b/extensions/fablabchemnitz/move_path_node/move_path_node.inx index 930593b2..32c39244 100644 --- a/extensions/fablabchemnitz/move_path_node/move_path_node.inx +++ b/extensions/fablabchemnitz/move_path_node/move_path_node.inx @@ -5,7 +5,7 @@ true - 0 + 0 false 10px 10px diff --git a/extensions/fablabchemnitz/move_path_node/move_path_node.py b/extensions/fablabchemnitz/move_path_node/move_path_node.py index 91c26f61..33f53c0e 100644 --- a/extensions/fablabchemnitz/move_path_node/move_path_node.py +++ b/extensions/fablabchemnitz/move_path_node/move_path_node.py @@ -69,7 +69,7 @@ class MovePathNode(inkex.EffectExtension): self.msg("-"*25) for i in range(moves): - if len(path) > 2: #the path needs at least more than two segments + if len(path) > 2: #the path needs at least more than two segments, else we might just get a "pointy path" on an open path #we move the first segment to the end of the list move = path[0] @@ -112,7 +112,8 @@ class MovePathNode(inkex.EffectExtension): newSubpaths[subpathNr - 1] = path else: - inkex.utils.debug("More moves entered than possible to apply") + inkex.utils.debug("More moves entered than possible to apply. Path result would be a point, not a line") + #return composedPath = inkex.Path() for newSubpath in newSubpaths: