diff --git a/pyproject.toml b/pyproject.toml index a730637..b3f603f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,7 @@ [project] name = "comfyui_resolutionselectorplus" description = "Custom node for ComfyUI providing easy resolution and empty latent selection for image generation workflows." -version = "2.1.0" +version = "2.1.1" license = {file = "LICENSE"} [project.urls] diff --git a/resolution_selector.py b/resolution_selector.py index 0626798..97a2884 100755 --- a/resolution_selector.py +++ b/resolution_selector.py @@ -454,10 +454,12 @@ class ResolutionSelector: return {"samples": latent_tensor} +# node_id must be unique: ComfyUI core ships a built-in "ResolutionSelector" +# (comfy_extras/nodes_resolution.py), so this pack registers under a distinct id. NODE_CLASS_MAPPINGS = { - "ResolutionSelector": ResolutionSelector, + "ResolutionSelectorPlus": ResolutionSelector, } NODE_DISPLAY_NAME_MAPPINGS = { - "ResolutionSelector": "Resolution Selector Plus", + "ResolutionSelectorPlus": "Resolution Selector Plus", } diff --git a/web/js/resolution_selector.js b/web/js/resolution_selector.js index 73770eb..cace2ea 100644 --- a/web/js/resolution_selector.js +++ b/web/js/resolution_selector.js @@ -167,10 +167,10 @@ function getDefaultResolution(model) { } app.registerExtension({ - name: "ResolutionSelector.DynamicDropdown", + name: "ResolutionSelectorPlus.DynamicDropdown", async nodeCreated(node) { - if (node.comfyClass !== "ResolutionSelector") return; + if (node.comfyClass !== "ResolutionSelectorPlus") return; // Set wider default node width to prevent text cutoff node.setSize([400, node.size[1]]); @@ -220,7 +220,7 @@ app.registerExtension({ }, async loadedGraphNode(node) { - if (node.comfyClass !== "ResolutionSelector") return; + if (node.comfyClass !== "ResolutionSelectorPlus") return; const modelWidget = node.widgets.find(w => w.name === "model"); if (modelWidget) {