Skip to content
This repository was archived by the owner on Jan 21, 2023. It is now read-only.

Commit dbb3d3f

Browse files
committed
revert
1 parent e1cfff6 commit dbb3d3f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

AssetStudioUtility/SpriteHelper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ private static Image<Bgra32> CutImage(Sprite m_Sprite, Texture2D m_Texture2D, Re
8282
var polygons = triangles.Select(x => new Polygon(new LinearLineSegment(x.Select(y => new PointF(y.X, y.Y)).ToArray()))).ToArray();
8383
IPathCollection path = new PathCollection(polygons);
8484
var matrix = Matrix3x2.CreateScale(m_Sprite.m_PixelsToUnits);
85-
matrix *= Matrix3x2.CreateTranslation(textureRect.width * m_Sprite.m_Pivot.X - textureRectOffset.X, textureRect.height * m_Sprite.m_Pivot.Y - textureRectOffset.Y);
85+
matrix *= Matrix3x2.CreateTranslation(m_Sprite.m_Rect.width * m_Sprite.m_Pivot.X - textureRectOffset.X, m_Sprite.m_Rect.height * m_Sprite.m_Pivot.Y - textureRectOffset.Y);
8686
path = path.Transform(matrix);
8787
var graphicsOptions = new GraphicsOptions
8888
{

0 commit comments

Comments
 (0)