[Refactor] Add LGraphNode.title_mode (#439)

This commit is contained in:
Chenlei Hu
2025-02-03 10:57:14 -08:00
committed by GitHub
parent 00de6ae960
commit 3e133b71e6
2 changed files with 6 additions and 2 deletions

View File

@@ -5168,7 +5168,7 @@ export class LGraphCanvas {
const { collapsed } = node.flags
const shape = node._shape || node.constructor.shape || LiteGraph.NODE_DEFAULT_SHAPE
const { title_mode } = node.constructor
const title_mode = node.title_mode
const render_title = title_mode == TitleMode.TRANSPARENT_TITLE || title_mode == TitleMode.NO_TITLE
? false