feat: only update uov last prompt when all preconditions are met

This commit is contained in:
Manuel Schmid 2024-06-24 21:54:10 +02:00
parent 3fae0cf15a
commit b2a23262fc
No known key found for this signature in database
GPG Key ID: 32C4F7569B40B84B
1 changed files with 2 additions and 1 deletions

View File

@ -1386,7 +1386,8 @@ def worker():
preparation_steps, enhance_steps, switch, tiled, total_count, use_expansion, use_style,
use_synthetic_refiner, width)
if async_task.enhance_uov_prompt_type == flags.enhancement_uov_prompt_type_last:
if (should_process_enhance_uov and async_task.enhance_uov_processing_order == flags.enhancement_uov_after
and async_task.enhance_uov_prompt_type == flags.enhancement_uov_prompt_type_last):
if enhance_prompt_processed != '':
last_enhance_prompt = enhance_prompt_processed
if enhance_negative_prompt_processed != '':