From f939e66e1c0e471458b1cacf1841dcbb94c2ec1a Mon Sep 17 00:00:00 2001 From: "Dr.Lt.Data" Date: Sun, 27 Apr 2025 22:16:11 +0900 Subject: [PATCH] fixed: this.widgets is undefined https://github.com/ltdrdata/ComfyUI-Impact-Pack/issues/977 --- js/impact-pack.js | 6 ++++-- modules/impact/config.py | 2 +- pyproject.toml | 2 +- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/js/impact-pack.js b/js/impact-pack.js index 0acfceb..8726439 100644 --- a/js/impact-pack.js +++ b/js/impact-pack.js @@ -606,8 +606,10 @@ app.registerExtension({ this.addInput(`${input_name}${slot_i}`, this.outputs[0].type); } - this.widgets[0].options.max = this.inputs.length-3; - this.widgets[0].value = Math.min(this.widgets[0].value, this.widgets[0].options.max); + if(this.widgets) { + this.widgets[0].options.max = this.inputs.length-3; + this.widgets[0].value = Math.min(this.widgets[0].value, this.widgets[0].options.max); + } } } }, diff --git a/modules/impact/config.py b/modules/impact/config.py index eaa0277..36d7286 100644 --- a/modules/impact/config.py +++ b/modules/impact/config.py @@ -1,7 +1,7 @@ import configparser import os -version_code = [8, 14] +version_code = [8, 14, 1] version = f"V{version_code[0]}.{version_code[1]}" + (f'.{version_code[2]}' if len(version_code) > 2 else '') dependency_version = 24 diff --git a/pyproject.toml b/pyproject.toml index 0cfd737..f904cec 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,7 @@ [project] name = "comfyui-impact-pack" description = "This node pack offers various detector nodes and detailer nodes that allow you to configure a workflow that automatically enhances facial details. And provide iterative upscaler." -version = "8.14" +version = "8.14.1" license = { file = "LICENSE.txt" } dependencies = ["segment-anything", "scikit-image", "piexif", "transformers", "opencv-python-headless", "GitPython", "scipy>=1.11.4"]