This commit is contained in:
karrycharon
2023-12-04 20:46:29 +08:00
parent 659d9623a7
commit c98e4d1a59
3 changed files with 6 additions and 6 deletions

View File

@@ -77,9 +77,9 @@ const ext = {
name: "efficiency.appearance",
nodeCreated(node) {
const title = node.getTitle();
if (NODE_COLORS.hasOwnProperty(title)) {
let colorKey = NODE_COLORS[title];
const nclass = node.comfyClass;
if (NODE_COLORS.hasOwnProperty(nclass)) {
let colorKey = NODE_COLORS[nclass];
if (colorKey === "random") {
// Check for a valid color key before popping