mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-03-04 04:30:04 +00:00
Sync 2666 Execution Model Inversion (#312)
* Sync 2666 Execution Model Inversion * Fix unittest * Fallback compatible
This commit is contained in:
@@ -1108,8 +1108,13 @@ export class GroupNodeHandler {
|
||||
const executed = handleEvent.call(
|
||||
this,
|
||||
'executed',
|
||||
(d) => d?.node,
|
||||
(d, id, node) => ({ ...d, node: id, merge: !node.resetExecution })
|
||||
(d) => d?.display_node || d?.node,
|
||||
(d, id, node) => ({
|
||||
...d,
|
||||
node: id,
|
||||
display_node: id,
|
||||
merge: !node.resetExecution
|
||||
})
|
||||
)
|
||||
|
||||
const onRemoved = node.onRemoved
|
||||
|
||||
@@ -5,7 +5,7 @@ import { LiteGraph } from '@comfyorg/litegraph'
|
||||
import type { LGraphNode, INodeInputSlot, IWidget } from '@comfyorg/litegraph'
|
||||
|
||||
const CONVERTED_TYPE = 'converted-widget'
|
||||
const VALID_TYPES = ['STRING', 'combo', 'number', 'BOOLEAN']
|
||||
const VALID_TYPES = ['STRING', 'combo', 'number', 'toggle', 'BOOLEAN']
|
||||
const CONFIG = Symbol()
|
||||
const GET_CONFIG = Symbol()
|
||||
const TARGET = Symbol() // Used for reroutes to specify the real target widget
|
||||
|
||||
Reference in New Issue
Block a user