mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-01-27 14:50:20 +08:00
remove logs
This commit is contained in:
parent
82da0ec4f6
commit
c2b5560c9a
@ -93,8 +93,6 @@ app.registerExtension({
|
|||||||
const nodeOutType = node.inputs && node.inputs[link?.target_slot] && node.inputs[link.target_slot].type ? node.inputs[link.target_slot].type : null;
|
const nodeOutType = node.inputs && node.inputs[link?.target_slot] && node.inputs[link.target_slot].type ? node.inputs[link.target_slot].type : null;
|
||||||
if (inputType && nodeOutType !== inputType) {
|
if (inputType && nodeOutType !== inputType) {
|
||||||
// The output doesnt match our input so disconnect it
|
// The output doesnt match our input so disconnect it
|
||||||
console.log("Disconnecting", { "node": node }, "as it doesnt match type of ", { "inputNode": inputNode });
|
|
||||||
console.log("Input type:", inputType, "Output type:", nodeOutType);
|
|
||||||
if (inputNode.type !== "Reroute")
|
if (inputNode.type !== "Reroute")
|
||||||
node.disconnectInput(link.target_slot);
|
node.disconnectInput(link.target_slot);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@ -236,7 +236,6 @@ app.registerExtension({
|
|||||||
onConnectOutput(slot, type, input, target_node, target_slot) {
|
onConnectOutput(slot, type, input, target_node, target_slot) {
|
||||||
// Fires before the link is made allowing us to reject it if it isn't valid
|
// Fires before the link is made allowing us to reject it if it isn't valid
|
||||||
|
|
||||||
console.log("onConnectOutput", { "input": input, "target_node": target_node, "target_slot": target_slot, "slot": slot, "type": type });
|
|
||||||
if (!input.widget) {
|
if (!input.widget) {
|
||||||
|
|
||||||
if (input.type === '*') {//allow reroute nodes
|
if (input.type === '*') {//allow reroute nodes
|
||||||
@ -246,7 +245,6 @@ app.registerExtension({
|
|||||||
if (!(input.type in ComfyWidgets)) return false; //not a ComfyWidgets input
|
if (!(input.type in ComfyWidgets)) return false; //not a ComfyWidgets input
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
console.log("1");
|
|
||||||
|
|
||||||
if (this.outputs[slot].links?.length) {
|
if (this.outputs[slot].links?.length) {
|
||||||
return this.#isValidConnection(input);
|
return this.#isValidConnection(input);
|
||||||
@ -265,13 +263,11 @@ app.registerExtension({
|
|||||||
const input = theirNode.inputs[link.target_slot];
|
const input = theirNode.inputs[link.target_slot];
|
||||||
if (!input) return;
|
if (!input) return;
|
||||||
|
|
||||||
console.log(input);
|
|
||||||
var _widget;
|
var _widget;
|
||||||
if (!input.widget) {
|
if (!input.widget) {
|
||||||
|
|
||||||
if (input.type === '*') { //connected to reroute node
|
if (input.type === '*') { //connected to reroute node
|
||||||
var outputType = theirNode.__outputType;
|
var outputType = theirNode.__outputType;
|
||||||
console.log("onFirstConnection", { "outputType": outputType });
|
|
||||||
if (!(outputType in ComfyWidgets)) return;
|
if (!(outputType in ComfyWidgets)) return;
|
||||||
_widget = { "name": outputType, "config": [outputType, {}] }//fake widget
|
_widget = { "name": outputType, "config": [outputType, {}] }//fake widget
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user