Fix options --alpha and --transfercolor

Always use params from dialog
This commit is contained in:
MaksV79 2018-11-19 23:31:06 +03:00 committed by GitHub
parent b4af9d3c36
commit d47ef23df1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -137,13 +137,11 @@ if __name__ == "__main__":
except:
arguments.blur_mask_modifier = 0
if (arguments.alpha == False): #if argument was not passed in command line, ask it
try:
arguments.alpha = bool ( {"1":True,"0":False}[input("Export png with alpha channel? [0..1] (default 0) : ").lower()] )
except:
arguments.alpha = False
if (arguments.transfercolor == False): #if argument was not passed in command line, ask it
try:
arguments.transfercolor = bool ( {"1":True,"0":False}[input("Transfer color from original DST image? [0..1] (default 0) : ").lower()] )
except: