summaryrefslogtreecommitdiff
path: root/lib/extensions
diff options
context:
space:
mode:
authorKaalleen <36401965+kaalleen@users.noreply.github.com>2023-04-25 19:12:57 +0200
committerGitHub <noreply@github.com>2023-04-25 19:12:57 +0200
commitc2d52ee7ac9e0690960320fc677cb85d0779f80a (patch)
tree53cf152258707fac0d0ca2fe84a2f573cfaf6be9 /lib/extensions
parentfd77bc6d3e727c9680a80a2da859d2b9ea6b83d4 (diff)
always remember invisible layers (#2231)
Diffstat (limited to 'lib/extensions')
-rw-r--r--lib/extensions/stitch_plan_preview.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/extensions/stitch_plan_preview.py b/lib/extensions/stitch_plan_preview.py
index fbfe3628..7e35f55d 100644
--- a/lib/extensions/stitch_plan_preview.py
+++ b/lib/extensions/stitch_plan_preview.py
@@ -47,8 +47,8 @@ class StitchPlanPreview(InkstitchExtension):
# update layer visibility 0 = unchanged, 1 = hidden, 2 = lower opacity
groups = self.document.getroot().findall(SVG_GROUP_TAG)
+ self.set_invisible_layers_attribute(groups, layer)
if self.options.layer_visibility == 1:
- self.set_invisible_layers_attribute(groups, layer)
self.hide_all_layers()
layer.style['display'] = "inline"
elif self.options.layer_visibility == 2: