fix: rename node_id to ResolutionSelectorPlus to avoid collision with built-in ResolutionSelector; bump 2.1.1

This commit is contained in:
BRADSEC
2026-06-20 18:25:42 +10:00
parent b8cadb1034
commit 2026e8c373
3 changed files with 8 additions and 6 deletions
+1 -1
View File
@@ -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]
+4 -2
View File
@@ -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",
}
+3 -3
View File
@@ -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) {