mirror of
https://github.com/w-okada/voice-changer.git
synced 2025-02-13 13:35:21 +03:00
bugfix: select model slot
This commit is contained in:
parent
e6938250b6
commit
6ac69f3091
@ -98,7 +98,10 @@ class RVC:
|
|||||||
if val < 0:
|
if val < 0:
|
||||||
return True
|
return True
|
||||||
val = val % 1000 # Quick hack for same slot is selected
|
val = val % 1000 # Quick hack for same slot is selected
|
||||||
if self.settings.modelSlots[val]:
|
if (
|
||||||
|
self.settings.modelSlots[val].modelFile is None
|
||||||
|
or self.settings.modelSlots[val].modelFile == ""
|
||||||
|
):
|
||||||
print("[Voice Changer] slot does not have model.")
|
print("[Voice Changer] slot does not have model.")
|
||||||
return True
|
return True
|
||||||
self.prepareModel(val)
|
self.prepareModel(val)
|
||||||
|
Loading…
Reference in New Issue
Block a user