diff --git a/SpineViewer/ViewModels/Exporters/BaseExporterViewModel.cs b/SpineViewer/ViewModels/Exporters/BaseExporterViewModel.cs index a53c7e8..4baff6e 100644 --- a/SpineViewer/ViewModels/Exporters/BaseExporterViewModel.cs +++ b/SpineViewer/ViewModels/Exporters/BaseExporterViewModel.cs @@ -101,18 +101,19 @@ namespace SpineViewer.ViewModels.Exporters /// protected void SetAutoResolutionStatic(BaseExporter exporter, params SpineObject[] spines) { - var bounds = spines[0].GetAnimationBounds(); - foreach (var sp in spines.Skip(1)) bounds.Union(sp.GetAnimationBounds()); + var bounds = spines[0].GetCurrentBounds(); + foreach (var sp in spines.Skip(1)) bounds.Union(sp.GetCurrentBounds()); SetAutoResolution(exporter, bounds); } /// /// 使用提供的模型设置导出器的自动分辨率和视区参数, 动画画面 /// - protected void SetAutoResolutionAnimated(BaseExporter exporter, params SpineObject[] spines) + protected void SetAutoResolutionAnimated(VideoExporter exporter, params SpineObject[] spines) { - var bounds = spines[0].GetAnimationBounds(); - foreach (var sp in spines.Skip(1)) bounds.Union(sp.GetAnimationBounds()); + var fps = exporter.Fps; + var bounds = spines[0].GetAnimationBounds(fps); + foreach (var sp in spines.Skip(1)) bounds.Union(sp.GetAnimationBounds(fps)); SetAutoResolution(exporter, bounds); }