Undo check for configured controlnet, which is optional.

This commit is contained in:
tgoff0 2015-05-22 00:53:54 +00:00
parent 9600ce9e03
commit f6049614ab

View file

@ -803,6 +803,8 @@ class Session(object):
def getctrlnetidx(self, dev):
if dev[0:4] == 'ctrl' and int(dev[4]) in [0,1,2,3]:
idx = int(dev[4])
if idx == 0:
return idx
if idx < 4 and self.getctrlnetprefixes()[idx] is not None:
return idx
else: