Fix node videos when preview format setting is set (#2706)

This commit is contained in:
bymyself
2025-02-24 08:49:45 -07:00
committed by GitHub
parent a35071fcb2
commit 05bd64820d

View File

@@ -4,6 +4,7 @@ import { defineStore } from 'pinia'
import { api } from '@/scripts/api'
import { ExecutedWsMessage, ResultItem } from '@/types/apiTypes'
import { parseFilePath } from '@/utils/formatUtil'
import { isVideoNode } from '@/utils/litegraphUtil'
const createOutputs = (
filenames: string[],
@@ -15,7 +16,7 @@ const createOutputs = (
}
const getPreviewParam = (node: LGraphNode): string => {
if (node.animatedImages) return ''
if (node.animatedImages || isVideoNode(node)) return ''
return app.getPreviewFormatParam()
}