mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-02-15 16:02:32 +08:00
[MOD] remove deprecated code
This commit is contained in:
parent
c89300743b
commit
4a4a889b8e
@ -227,8 +227,6 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log(type);
|
|
||||||
console.log(base_class);
|
|
||||||
this.registered_node_types[type] = base_class;
|
this.registered_node_types[type] = base_class;
|
||||||
if (base_class.constructor.name) {
|
if (base_class.constructor.name) {
|
||||||
this.Nodes[classname] = base_class;
|
this.Nodes[classname] = base_class;
|
||||||
@ -4312,7 +4310,6 @@
|
|||||||
|
|
||||||
// if it is a flow-control connection, and the original output link is not null, discounnect
|
// if it is a flow-control connection, and the original output link is not null, discounnect
|
||||||
case "FLOW":
|
case "FLOW":
|
||||||
console.log("[Link Connect] remove output links of 'FLOW' connection.");
|
|
||||||
this.graph.beforeChange();
|
this.graph.beforeChange();
|
||||||
this.disconnectOutput(slot);
|
this.disconnectOutput(slot);
|
||||||
changed = true;
|
changed = true;
|
||||||
@ -4338,9 +4335,6 @@
|
|||||||
target_node.id,
|
target_node.id,
|
||||||
target_slot
|
target_slot
|
||||||
);
|
);
|
||||||
console.log("new link");
|
|
||||||
console.trace();
|
|
||||||
console.log(link_info);
|
|
||||||
|
|
||||||
//add to graph links list
|
//add to graph links list
|
||||||
this.graph.links[link_info.id] = link_info;
|
this.graph.links[link_info.id] = link_info;
|
||||||
|
|||||||
@ -1396,8 +1396,6 @@ export class ComfyApp {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async registerNodeDef(nodeId, nodeData) {
|
async registerNodeDef(nodeId, nodeData) {
|
||||||
console.log("registerNodeDef");
|
|
||||||
console.log(nodeData);
|
|
||||||
const self = this;
|
const self = this;
|
||||||
const node = Object.assign(
|
const node = Object.assign(
|
||||||
function ComfyNode() {
|
function ComfyNode() {
|
||||||
@ -1740,8 +1738,6 @@ export class ComfyApp {
|
|||||||
// type: "FLOW"
|
// type: "FLOW"
|
||||||
// // _data: null
|
// // _data: null
|
||||||
// };
|
// };
|
||||||
console.log("Add Link:");
|
|
||||||
console.log(link);
|
|
||||||
graphData.links.push(link);
|
graphData.links.push(link);
|
||||||
|
|
||||||
from_node.outputs[0].links = [link_id];
|
from_node.outputs[0].links = [link_id];
|
||||||
@ -1788,10 +1784,7 @@ export class ComfyApp {
|
|||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
console.trace();
|
|
||||||
graphData = this.initFlowControlConnection(graphData);
|
graphData = this.initFlowControlConnection(graphData);
|
||||||
console.log("Graph Data");
|
|
||||||
console.log(graphData);
|
|
||||||
this.graph.configure(graphData);
|
this.graph.configure(graphData);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
let errorHint = [];
|
let errorHint = [];
|
||||||
@ -1900,8 +1893,6 @@ export class ComfyApp {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const _workflow = this.graph.serialize();
|
const _workflow = this.graph.serialize();
|
||||||
console.log("GraphToPrompt, originalPrompt");
|
|
||||||
console.log(_workflow);
|
|
||||||
const output = {};
|
const output = {};
|
||||||
// Process nodes in order of execution
|
// Process nodes in order of execution
|
||||||
for (const outerNode of this.graph.computeExecutionOrder(false)) {
|
for (const outerNode of this.graph.computeExecutionOrder(false)) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user