mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-05-03 20:51:58 +00:00
Remove name-based inference in useIntWidget.ts and groupNode.ts that auto-added control_after_generate for any INT input named "seed" or "noise_seed". Now only adds the control widget when control_after_generate is explicitly set by the backend. All core backend nodes already set control_after_generate explicitly. Custom nodes like WAS_Text_Random_Line that use "seed" as a plain INT were incorrectly getting a randomize control widget that reset on every tab switch (since the control widget has serialize: false). Update test fixture and remove stale screenshot expectation for the DevToolsNodeWithSeedInput test node, which correctly has no control_after_generate. Fixes #7468
32 lines
536 B
JSON
32 lines
536 B
JSON
{
|
|
"last_node_id": 10,
|
|
"last_link_id": 9,
|
|
"nodes": [
|
|
{
|
|
"id": 10,
|
|
"type": "DevToolsNodeWithSeedInput",
|
|
"pos": [20, 50],
|
|
"size": [315, 82],
|
|
"flags": {},
|
|
"order": 1,
|
|
"mode": 0,
|
|
"inputs": [],
|
|
"outputs": [],
|
|
"properties": {
|
|
"Node name for S&R": "DevToolsNodeWithSeedInput"
|
|
},
|
|
"widgets_values": [0]
|
|
}
|
|
],
|
|
"links": [],
|
|
"groups": [],
|
|
"config": {},
|
|
"extra": {
|
|
"ds": {
|
|
"scale": 1,
|
|
"offset": [0, 0]
|
|
}
|
|
},
|
|
"version": 0.4
|
|
}
|