mirror of
https://github.com/vladmandic/automatic
synced 2026-09-18 08:44:33 +02:00
fix xyz grid with scripts/detailer
Signed-off-by: Vladimir Mandic <mandic00@live.com>
This commit is contained in:
+11
-3
@@ -419,6 +419,14 @@ class Script(scripts.Script):
|
||||
|
||||
|
||||
def process_images(self, p, *args): # pylint: disable=W0221, W0613
|
||||
if p.iteration > 0 and cache is not None and len(cache.images) > 0:
|
||||
cache.images = [] # avoid returning same images multiple items
|
||||
return cache
|
||||
if hasattr(cache, 'used'):
|
||||
cache.images.clear()
|
||||
cache.used = False
|
||||
elif cache is not None and len(cache.images) > 0:
|
||||
cache.used = True
|
||||
p.restore_faces = False
|
||||
p.detailer = False
|
||||
p.color_corrections = None
|
||||
p.scripts = None
|
||||
return cache
|
||||
return None
|
||||
|
||||
Reference in New Issue
Block a user