mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-01-18 18:30:19 +08:00
Changed default name to be the node type not title
This commit is contained in:
parent
138e6bf4c3
commit
dadfac7d07
@ -90,7 +90,7 @@ app.registerExtension({
|
|||||||
const r = onNodeCreated ? onNodeCreated.apply(this, arguments) : undefined;
|
const r = onNodeCreated ? onNodeCreated.apply(this, arguments) : undefined;
|
||||||
|
|
||||||
if (!this.properties || !("Node name for S&R" in this.properties)) {
|
if (!this.properties || !("Node name for S&R" in this.properties)) {
|
||||||
this.addProperty("Node name for S&R", this.title, "string");
|
this.addProperty("Node name for S&R", this.constructor.type, "string");
|
||||||
}
|
}
|
||||||
|
|
||||||
return r;
|
return r;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user