mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-27 17:52:16 +00:00
Fix edit mask button shown when non-nodes selected
This commit is contained in:
@@ -25,8 +25,9 @@ const commandStore = useCommandStore()
|
|||||||
const canvasStore = useCanvasStore()
|
const canvasStore = useCanvasStore()
|
||||||
|
|
||||||
const isSingleImageNode = computed(() => {
|
const isSingleImageNode = computed(() => {
|
||||||
const nodes = canvasStore.selectedItems.filter(isLGraphNode)
|
const { selectedItems } = canvasStore
|
||||||
return nodes.length === 1 && nodes.some(isImageNode)
|
const item = selectedItems[0]
|
||||||
|
return selectedItems.length === 1 && isLGraphNode(item) && isImageNode(item)
|
||||||
})
|
})
|
||||||
|
|
||||||
const openMaskEditor = () => {
|
const openMaskEditor = () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user