mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-30 11:11:53 +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 { api } from '@/scripts/api'
|
||||||
import { ExecutedWsMessage, ResultItem } from '@/types/apiTypes'
|
import { ExecutedWsMessage, ResultItem } from '@/types/apiTypes'
|
||||||
import { parseFilePath } from '@/utils/formatUtil'
|
import { parseFilePath } from '@/utils/formatUtil'
|
||||||
|
import { isVideoNode } from '@/utils/litegraphUtil'
|
||||||
|
|
||||||
const createOutputs = (
|
const createOutputs = (
|
||||||
filenames: string[],
|
filenames: string[],
|
||||||
@@ -15,7 +16,7 @@ const createOutputs = (
|
|||||||
}
|
}
|
||||||
|
|
||||||
const getPreviewParam = (node: LGraphNode): string => {
|
const getPreviewParam = (node: LGraphNode): string => {
|
||||||
if (node.animatedImages) return ''
|
if (node.animatedImages || isVideoNode(node)) return ''
|
||||||
return app.getPreviewFormatParam()
|
return app.getPreviewFormatParam()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user