mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-22 15:54:09 +00:00
Fix node videos when preview format setting is set (#2706)
This commit is contained in:
@@ -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()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user