From 33dc3a8a30143e395a4b31e7ef2f8e3d23a259ca Mon Sep 17 00:00:00 2001 From: "Dr.Lt.Data" Date: Sat, 27 Jan 2024 12:53:49 +0900 Subject: [PATCH] fix: invalid double-click policy --- __init__.py | 2 +- extension-node-map.json | 3 +++ js/node_fixer.js | 15 ++++----------- node_db/new/extension-node-map.json | 3 +++ 4 files changed, 11 insertions(+), 12 deletions(-) diff --git a/__init__.py b/__init__.py index 4de06a6c..a788e447 100644 --- a/__init__.py +++ b/__init__.py @@ -29,7 +29,7 @@ except: print(f"[WARN] ComfyUI-Manager: Your ComfyUI version is outdated. Please update to the latest version.") -version = [2, 4, 1] +version = [2, 4, 2] version_str = f"V{version[0]}.{version[1]}" + (f'.{version[2]}' if len(version) > 2 else '') print(f"### Loading: ComfyUI-Manager ({version_str})") diff --git a/extension-node-map.json b/extension-node-map.json index 4019046a..3a5c42b3 100644 --- a/extension-node-map.json +++ b/extension-node-map.json @@ -54,6 +54,8 @@ "DM_DareClipMerger", "DM_DareModelMerger", "DM_DareModelMergerMBW", + "DM_LoRALoaderTags", + "DM_LoRAReporting", "DM_MagnitudeMasker", "DM_MaskEdit", "DM_MaskOperations", @@ -5472,6 +5474,7 @@ "DetailerForEachDebug", "DetailerForEachDebugPipe", "DetailerForEachPipe", + "DetailerForEachPipeForAnimateDiff", "DetailerHookCombine", "DetailerPipeToBasicPipe", "EditBasicPipe", diff --git a/js/node_fixer.js b/js/node_fixer.js index f8cc7c97..01d5b958 100644 --- a/js/node_fixer.js +++ b/js/node_fixer.js @@ -36,16 +36,6 @@ function lookup_nearest_nodes(node) { return nearest_node; } -function copy_connections(src, dest) { - if(src.inputs && dest.inputs) { - - } - - if(src.outputs && dest.outputs) { - - } -} - function node_info_copy(src, dest) { // copy input connections for(let i in src.inputs) { @@ -91,7 +81,10 @@ app.registerExtension({ let orig_dblClick = node.onDblClick; node.onDblClick = () => { orig_dblClick?.apply?.(this, arguments); - if(node.inputs && node.outputs && node.inputs.length == 0 && node.outputs.length == 0) + if(node.inputs?.some(x => x.link != null) || node.outputs?.some(x => x.links != null && x.links.length > 0) ) + return; + + if(!node.inputs && !node.outputs) return; let src_node = lookup_nearest_nodes(node); diff --git a/node_db/new/extension-node-map.json b/node_db/new/extension-node-map.json index 4019046a..3a5c42b3 100644 --- a/node_db/new/extension-node-map.json +++ b/node_db/new/extension-node-map.json @@ -54,6 +54,8 @@ "DM_DareClipMerger", "DM_DareModelMerger", "DM_DareModelMergerMBW", + "DM_LoRALoaderTags", + "DM_LoRAReporting", "DM_MagnitudeMasker", "DM_MaskEdit", "DM_MaskOperations", @@ -5472,6 +5474,7 @@ "DetailerForEachDebug", "DetailerForEachDebugPipe", "DetailerForEachPipe", + "DetailerForEachPipeForAnimateDiff", "DetailerHookCombine", "DetailerPipeToBasicPipe", "EditBasicPipe",