fix: rename node_id to ResolutionSelectorPlus to avoid collision with built-in ResolutionSelector; bump 2.1.1
This commit is contained in:
+1
-1
@@ -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]
|
||||
|
||||
@@ -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",
|
||||
}
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user