Deprecate widgetType:widgetName key in widgets map (#2879)

This commit is contained in:
Chenlei Hu
2025-03-05 13:32:47 -05:00
committed by GitHub
parent 35e6cabfe7
commit ba4e4ed0b8
4 changed files with 10 additions and 29 deletions

View File

@@ -71,7 +71,15 @@ export const useIntWidget = () => {
}
)
if (inputSpec.control_after_generate) {
const controlAfterGenerate =
inputSpec.control_after_generate ??
/**
* Compatibility with legacy node convention. Int input with name
* 'seed' or 'noise_seed' get automatically added a control widget.
*/
['seed', 'noise_seed'].includes(inputSpec.name)
if (controlAfterGenerate) {
const seedControl = addValueControlWidget(
node,
widget,