Changed default name to be the node type not title

This commit is contained in:
pythongosssss 2023-04-12 13:52:19 +01:00
parent f15b4a7ffa
commit a3516225f9

View File

@ -90,7 +90,7 @@ app.registerExtension({
const r = onNodeCreated ? onNodeCreated.apply(this, arguments) : undefined;
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;