File tree 2 files changed +5
-1
lines changed
2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -168,7 +168,7 @@ public void NormalizeSeeds()
168
168
{
169
169
Set ( T2IParamTypes . Seed , Random . Shared . Next ( ) ) ;
170
170
}
171
- if ( ! TryGet ( T2IParamTypes . VariationSeed , out long vseed ) || vseed == - 1 )
171
+ if ( TryGet ( T2IParamTypes . VariationSeed , out long vseed ) && vseed == - 1 )
172
172
{
173
173
Set ( T2IParamTypes . VariationSeed , Random . Shared . Next ( ) ) ;
174
174
}
Original file line number Diff line number Diff line change @@ -321,6 +321,9 @@ function getGenInput() {
321
321
if ( type . toggleable && ! getRequiredElementById ( `input_${ type . id } _toggle` ) . checked ) {
322
322
continue ;
323
323
}
324
+ if ( type . feature_missing ) {
325
+ continue ;
326
+ }
324
327
if ( type . group && type . group . toggles && ! getRequiredElementById ( `input_group_content_${ type . group . id } _toggle` ) . checked ) {
325
328
continue ;
326
329
}
@@ -415,6 +418,7 @@ function hideUnsupportableParams() {
415
418
if ( elem ) {
416
419
let box = findParentOfClass ( elem , 'auto-input' ) ;
417
420
let show = param . feature_flag == null || Object . values ( backends_loaded ) . filter ( b => b . features . includes ( param . feature_flag ) ) . length > 0 ;
421
+ param . feature_missing = ! show ;
418
422
if ( show ) {
419
423
box . style . display = 'inline-block' ;
420
424
}
You can’t perform that action at this time.
0 commit comments