mirror of
https://github.com/lllyasviel/stable-diffusion-webui-forge.git
synced 2025-12-28 05:35:00 +00:00
parent
1f140749d4
commit
ad983c99d9
@ -63,9 +63,10 @@ def set_samplers():
|
||||
|
||||
def add_sampler(sampler):
|
||||
global all_samplers, all_samplers_map
|
||||
all_samplers.append(sampler)
|
||||
all_samplers_map = {x.name: x for x in all_samplers}
|
||||
set_samplers()
|
||||
if sampler.name not in [x.name for x in all_samplers]:
|
||||
all_samplers.append(sampler)
|
||||
all_samplers_map = {x.name: x for x in all_samplers}
|
||||
set_samplers()
|
||||
return
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user