summaryrefslogtreecommitdiff
path: root/lib/extensions/params.py
diff options
context:
space:
mode:
authorKaalleen <36401965+kaalleen@users.noreply.github.com>2024-05-07 20:48:05 +0200
committerGitHub <noreply@github.com>2024-05-07 20:48:05 +0200
commit45a8537c98f961742e177e81c4f41db54eec0827 (patch)
treeb0e5032b160960952d4fbd964362c10c572beccb /lib/extensions/params.py
parent7edcdfdc47b0c5b76fd633bb331b8786017e8f1c (diff)
remove special treatment for polylines (#2866)
Diffstat (limited to 'lib/extensions/params.py')
-rw-r--r--lib/extensions/params.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/extensions/params.py b/lib/extensions/params.py
index 076ed301..dc6cd147 100644
--- a/lib/extensions/params.py
+++ b/lib/extensions/params.py
@@ -16,15 +16,15 @@ import wx
from wx.lib.scrolledpanel import ScrolledPanel
from ..commands import is_command, is_command_symbol
-from ..elements import (Clone, EmbroideryElement, FillStitch, Polyline,
- SatinColumn, Stroke)
+from ..elements import (Clone, EmbroideryElement, FillStitch, SatinColumn,
+ Stroke)
from ..elements.clone import is_clone
from ..exceptions import InkstitchException, format_uncaught_exception
from ..gui import PresetsPanel, PreviewRenderer, WarningPanel
from ..gui.simulator import SplitSimulatorWindow
from ..i18n import _
from ..stitch_plan import stitch_groups_to_stitch_plan
-from ..svg.tags import SVG_POLYLINE_TAG
+from ..svg.tags import EMBROIDERABLE_TAGS
from ..utils import get_resource_dir
from ..utils.param import ParamOption
from ..utils.svg_data import get_pagecolor
@@ -658,10 +658,10 @@ class Params(InkstitchExtension):
classes = []
if not is_command(node) and not is_command_symbol(node):
- if node.tag == SVG_POLYLINE_TAG:
- classes.append(Polyline)
- elif is_clone(node):
+ if is_clone(node):
classes.append(Clone)
+ elif node.tag in EMBROIDERABLE_TAGS and not node.get_path():
+ pass
else:
if element.get_style("fill", 'black') and not element.get_style("fill-opacity", 1) == "0":
classes.append(FillStitch)