small fixes
This commit is contained in:
parent
7343d5be1b
commit
bb3505ed9e
@ -24,7 +24,7 @@ def warn(*args, **kwargs):
|
|||||||
import warnings
|
import warnings
|
||||||
warnings.warn = warn
|
warnings.warn = warn
|
||||||
|
|
||||||
class TemplateEffect(inkex.Effect):
|
class ExportXY(inkex.Effect):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
inkex.Effect.__init__(self)
|
inkex.Effect.__init__(self)
|
||||||
def effect(self):
|
def effect(self):
|
||||||
@ -41,5 +41,4 @@ class TemplateEffect(inkex.Effect):
|
|||||||
for csp in subpath:
|
for csp in subpath:
|
||||||
output_nodes += str(csp[1][0]) + "\t" + str(csp[1][1]) + "\n"
|
output_nodes += str(csp[1][0]) + "\t" + str(csp[1][1]) + "\n"
|
||||||
sys.stderr.write(output_nodes)
|
sys.stderr.write(output_nodes)
|
||||||
TemplateEffect().run()
|
ExportXY().run()
|
||||||
sys.exit(0) #helps to keep the selection
|
|
@ -94,7 +94,7 @@ class SubdividePathEffect(inkex.Effect):
|
|||||||
for key, cspath in paths:
|
for key, cspath in paths:
|
||||||
parts = getPartsFromCubicSuper(cspath)
|
parts = getPartsFromCubicSuper(cspath)
|
||||||
partsSplit = False
|
partsSplit = False
|
||||||
|
try:
|
||||||
for i, part in enumerate(parts):
|
for i, part in enumerate(parts):
|
||||||
|
|
||||||
newSegs = []
|
newSegs = []
|
||||||
@ -162,5 +162,6 @@ class SubdividePathEffect(inkex.Effect):
|
|||||||
else:
|
else:
|
||||||
cspath = getCubicSuperFromParts(parts)
|
cspath = getCubicSuperFromParts(parts)
|
||||||
elem.set('d', CubicSuperPath(cspath))
|
elem.set('d', CubicSuperPath(cspath))
|
||||||
|
except:
|
||||||
|
pass
|
||||||
SubdividePathEffect().run()
|
SubdividePathEffect().run()
|
Reference in New Issue
Block a user