Undo check for configured controlnet, which is optional.
This commit is contained in:
parent
9600ce9e03
commit
f6049614ab
1 changed files with 2 additions and 0 deletions
|
@ -803,6 +803,8 @@ class Session(object):
|
||||||
def getctrlnetidx(self, dev):
|
def getctrlnetidx(self, dev):
|
||||||
if dev[0:4] == 'ctrl' and int(dev[4]) in [0,1,2,3]:
|
if dev[0:4] == 'ctrl' and int(dev[4]) in [0,1,2,3]:
|
||||||
idx = int(dev[4])
|
idx = int(dev[4])
|
||||||
|
if idx == 0:
|
||||||
|
return idx
|
||||||
if idx < 4 and self.getctrlnetprefixes()[idx] is not None:
|
if idx < 4 and self.getctrlnetprefixes()[idx] is not None:
|
||||||
return idx
|
return idx
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in a new issue