kopia lustrzana https://github.com/inkstitch/inkstitch
add support for ignore command
rodzic
eef5754e33
commit
1505cea3d4
|
@ -8,6 +8,7 @@
|
|||
<param name="fill_end" type="boolean" _gui-text="Fill ending position">false</param>
|
||||
<param name="stop" type="boolean" _gui-text="Stop after sewing this object">false</param>
|
||||
<param name="trim" type="boolean" _gui-text="Trim thread after sewing this object">false</param>
|
||||
<param name="ignore" type="boolean" _gui-text="Ignore this object (do not stitch)">false</param>
|
||||
<param name="extension" type="string" gui-hidden="true">commands</param>
|
||||
<effect>
|
||||
<object-type>all</object-type>
|
||||
|
|
|
@ -114,6 +114,9 @@ class InkstitchExtension(inkex.Effect):
|
|||
nodes = []
|
||||
element = EmbroideryElement(node)
|
||||
|
||||
if element.has_command('ignore'):
|
||||
return []
|
||||
|
||||
if element.has_style('display') and element.get_style('display') is None:
|
||||
return []
|
||||
|
||||
|
|
|
@ -16,7 +16,7 @@ from ..svg import get_node_transform
|
|||
|
||||
|
||||
class Commands(InkstitchExtension):
|
||||
COMMANDS = ["fill_start", "fill_end", "stop", "trim"]
|
||||
COMMANDS = ["fill_start", "fill_end", "stop", "trim", "ignore"]
|
||||
|
||||
def __init__(self, *args, **kwargs):
|
||||
InkstitchExtension.__init__(self, *args, **kwargs)
|
||||
|
|
Ładowanie…
Reference in New Issue