修改GetBounds为GetCurrentBounds
This commit is contained in:
@@ -167,7 +167,7 @@ namespace SpineViewer.Spine.Implementations.SpineObject
|
||||
|
||||
public override float GetAnimationDuration(string name) { return skeletonData.FindAnimation(name)?.Duration ?? 0f; }
|
||||
|
||||
protected override RectangleF getBounds()
|
||||
protected override RectangleF getCurrentBounds()
|
||||
{
|
||||
float[] _ = [];
|
||||
skeleton.GetBounds(out var x, out var y, out var w, out var h, ref _);
|
||||
@@ -466,7 +466,7 @@ namespace SpineViewer.Spine.Implementations.SpineObject
|
||||
if (debugBounds)
|
||||
{
|
||||
var vt = new SFML.Graphics.Vertex() { Color = BoundsColor };
|
||||
var b = getBounds();
|
||||
var b = getCurrentBounds();
|
||||
|
||||
vt.Position.X = b.Left;
|
||||
vt.Position.Y = b.Top;
|
||||
|
||||
Reference in New Issue
Block a user