fix random seed to max length of the sizes, and add custom sizes folder to the sizes searching function

This commit is contained in:
geetesha
2024-08-09 23:50:33 -07:00
parent a2c73de56d
commit 7512e56197
+5 -3
View File
@@ -74,9 +74,11 @@ const ext = {
if (!sizes || !sizes.length) return;
sizeIndexWidget.options.max = sizes.length;
if(sizeIndexWidget.options.value > sizes.length) {
sizeIndexWidget.options.value = sizes.length;
const maxSeed = sizes.length - 1;
sizeIndexWidget.options.max = maxSeed;
if(sizeIndexWidget.options.value > maxSeed) {
sizeIndexWidget.options.value = maxSeed;
}
this.triggerSlot(0);