Serialize node links instead of widget values
Syncing litegraph widget state is kinda annoying, and unnecessary since everything will be moved to separate UI component nodes. Instead I modified the input slot type to store the min/max/step to be copied into the default UI node later. Now nothing uses litegraph's widgets anymore
This commit is contained in:
@@ -221,12 +221,12 @@ function nodeAdded(node: LGraphNode) {
|
||||
|
||||
const parent = findDefaultContainerForInsertion();
|
||||
// Add default node panel containing all widgets
|
||||
if (node.widgets && node.widgets.length > 0) {
|
||||
const container = addContainer(parent.id, { title: node.title, direction: "vertical", associatedNode: node.id });
|
||||
for (const widget of node.widgets) {
|
||||
addWidget(container.id, node, widget, { associatedNode: node.id });
|
||||
}
|
||||
}
|
||||
// if (node.widgets && node.widgets.length > 0) {
|
||||
// const container = addContainer(parent.id, { title: node.title, direction: "vertical", associatedNode: node.id });
|
||||
// for (const widget of node.widgets) {
|
||||
// addWidget(container.id, node, widget, { associatedNode: node.id });
|
||||
// }
|
||||
// }
|
||||
}
|
||||
|
||||
function removeEntry(state: LayoutState, id: DragItemID) {
|
||||
|
||||
Reference in New Issue
Block a user