mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-08 00:50:05 +00:00
Fix NODE_DEFAULT_SHAPE in color palette (#2033)
Co-authored-by: github-actions <github-actions@github.com>
This commit is contained in:
@@ -276,7 +276,19 @@ app.registerExtension({
|
||||
colorPalette.colors.litegraph_base.hasOwnProperty(key) &&
|
||||
LiteGraph.hasOwnProperty(key)
|
||||
) {
|
||||
LiteGraph[key] = colorPalette.colors.litegraph_base[key]
|
||||
const value = colorPalette.colors.litegraph_base[key]
|
||||
if (key === 'NODE_DEFAULT_SHAPE' && typeof value === 'string') {
|
||||
console.warn(
|
||||
`litegraph_base.NODE_DEFAULT_SHAPE only accepts [${[
|
||||
LiteGraph.BOX_SHAPE,
|
||||
LiteGraph.ROUND_SHAPE,
|
||||
LiteGraph.CARD_SHAPE
|
||||
].join(', ')}] but got ${value}`
|
||||
)
|
||||
LiteGraph.NODE_DEFAULT_SHAPE = LiteGraph.ROUND_SHAPE
|
||||
} else {
|
||||
LiteGraph[key] = value
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user