From 02c4c15e1c9d2f28ab0f95b3b21e9c3c77a5d923 Mon Sep 17 00:00:00 2001 From: Petr Kalis Date: Thu, 5 Nov 2020 15:16:34 +0100 Subject: [PATCH] #688 - Fix publishing hidden layers --- pype/plugins/photoshop/publish/extract_image.py | 2 -- pype/plugins/photoshop/publish/extract_review.py | 2 -- 2 files changed, 4 deletions(-) diff --git a/pype/plugins/photoshop/publish/extract_image.py b/pype/plugins/photoshop/publish/extract_image.py index 38920b5557..af76caf379 100644 --- a/pype/plugins/photoshop/publish/extract_image.py +++ b/pype/plugins/photoshop/publish/extract_image.py @@ -34,8 +34,6 @@ class ExtractImage(pype.api.Extractor): # limit unnecessary calls to client if layer.visible and layer.id not in extract_ids: stub.set_visible(layer.id, False) - if not layer.visible and layer.id in extract_ids: - stub.set_visible(layer.id, True) save_options = [] if "png" in self.formats: diff --git a/pype/plugins/photoshop/publish/extract_review.py b/pype/plugins/photoshop/publish/extract_review.py index b4651897c9..4f2c3c3d23 100644 --- a/pype/plugins/photoshop/publish/extract_review.py +++ b/pype/plugins/photoshop/publish/extract_review.py @@ -38,8 +38,6 @@ class ExtractReview(pype.api.Extractor): # limit unnecessary calls to client if layer.visible and layer.id not in extract_ids: stub.set_visible(layer.id, False) - if not layer.visible and layer.id in extract_ids: - stub.set_visible(layer.id, True) stub.saveAs(output_image_path, 'jpg', True)