small fixes

This commit is contained in:
Mario Voigt 2020-08-09 12:56:14 +02:00
parent 7343d5be1b
commit bb3505ed9e
2 changed files with 72 additions and 72 deletions

View File

@ -24,7 +24,7 @@ def warn(*args, **kwargs):
import warnings
warnings.warn = warn
class TemplateEffect(inkex.Effect):
class ExportXY(inkex.Effect):
def __init__(self):
inkex.Effect.__init__(self)
def effect(self):
@ -41,5 +41,4 @@ class TemplateEffect(inkex.Effect):
for csp in subpath:
output_nodes += str(csp[1][0]) + "\t" + str(csp[1][1]) + "\n"
sys.stderr.write(output_nodes)
TemplateEffect().run()
sys.exit(0) #helps to keep the selection
ExportXY().run()

View File

@ -94,7 +94,7 @@ class SubdividePathEffect(inkex.Effect):
for key, cspath in paths:
parts = getPartsFromCubicSuper(cspath)
partsSplit = False
try:
for i, part in enumerate(parts):
newSegs = []
@ -162,5 +162,6 @@ class SubdividePathEffect(inkex.Effect):
else:
cspath = getCubicSuperFromParts(parts)
elem.set('d', CubicSuperPath(cspath))
except:
pass
SubdividePathEffect().run()