From 72a16dc95f740951de009ba424fb002733653666 Mon Sep 17 00:00:00 2001 From: ww-rm Date: Wed, 26 Mar 2025 02:44:30 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AF=BC=E5=87=BA=E5=8D=95=E4=B8=AA=E6=97=B6?= =?UTF-8?q?=E4=B9=9F=E5=9C=A8=E5=AD=90=E7=9B=AE=E5=BD=95=E8=BE=93=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Implementations/Exporter/FrameSequenceExporter.cs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/SpineViewer/Exporter/Implementations/Exporter/FrameSequenceExporter.cs b/SpineViewer/Exporter/Implementations/Exporter/FrameSequenceExporter.cs index f7c6453..06af4fe 100644 --- a/SpineViewer/Exporter/Implementations/Exporter/FrameSequenceExporter.cs +++ b/SpineViewer/Exporter/Implementations/Exporter/FrameSequenceExporter.cs @@ -1,4 +1,5 @@ using SpineViewer.Exporter.Implementations.ExportArgs; +using SpineViewer.Spine; using System; using System.Collections.Generic; using System.ComponentModel; @@ -22,9 +23,12 @@ namespace SpineViewer.Exporter.Implementations.Exporter int frameIdx = 0; foreach (var frame in GetFrames(spinesToRender, worker)) { - // 导出单个时必定提供输出文件夹 + // 导出单个时必定提供输出文件夹, + var saveDir = Path.Combine(args.OutputDir, $"frames_{timestamp}_{args.FPS:f0}"); + Directory.CreateDirectory(saveDir); + var filename = $"frames_{timestamp}_{args.FPS:f0}_{frameIdx:d6}{args.FileSuffix}"; - var savePath = Path.Combine(args.OutputDir, filename); + var savePath = Path.Combine(saveDir, filename); try {