修复静态画面的边界检测错误
This commit is contained in:
@@ -101,18 +101,19 @@ namespace SpineViewer.ViewModels.Exporters
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
protected void SetAutoResolutionStatic(BaseExporter exporter, params SpineObject[] spines)
|
protected void SetAutoResolutionStatic(BaseExporter exporter, params SpineObject[] spines)
|
||||||
{
|
{
|
||||||
var bounds = spines[0].GetAnimationBounds();
|
var bounds = spines[0].GetCurrentBounds();
|
||||||
foreach (var sp in spines.Skip(1)) bounds.Union(sp.GetAnimationBounds());
|
foreach (var sp in spines.Skip(1)) bounds.Union(sp.GetCurrentBounds());
|
||||||
SetAutoResolution(exporter, bounds);
|
SetAutoResolution(exporter, bounds);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 使用提供的模型设置导出器的自动分辨率和视区参数, 动画画面
|
/// 使用提供的模型设置导出器的自动分辨率和视区参数, 动画画面
|
||||||
/// </summary>
|
/// </summary>
|
||||||
protected void SetAutoResolutionAnimated(BaseExporter exporter, params SpineObject[] spines)
|
protected void SetAutoResolutionAnimated(VideoExporter exporter, params SpineObject[] spines)
|
||||||
{
|
{
|
||||||
var bounds = spines[0].GetAnimationBounds();
|
var fps = exporter.Fps;
|
||||||
foreach (var sp in spines.Skip(1)) bounds.Union(sp.GetAnimationBounds());
|
var bounds = spines[0].GetAnimationBounds(fps);
|
||||||
|
foreach (var sp in spines.Skip(1)) bounds.Union(sp.GetAnimationBounds(fps));
|
||||||
SetAutoResolution(exporter, bounds);
|
SetAutoResolution(exporter, bounds);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user