mirror of
https://github.com/Bing-su/adetailer.git
synced 2026-03-11 00:10:05 +00:00
feat(script): same sampler option
This commit is contained in:
@@ -374,7 +374,10 @@ class AfterDetailerScript(scripts.Script):
|
||||
|
||||
def get_sampler(self, p, args: ADetailerArgs) -> str:
|
||||
if args.ad_use_sampler:
|
||||
if args.ad_sampler == "Use same sampler":
|
||||
return p.sampler_name
|
||||
return args.ad_sampler
|
||||
|
||||
if hasattr(p, "_ad_orig"):
|
||||
return p._ad_orig.sampler_name
|
||||
return p.sampler_name
|
||||
|
||||
Reference in New Issue
Block a user