com.wallstop-studios.unity-helpers 2.0.0-rc74.9 → 2.0.0-rc75
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -441,7 +441,7 @@
|
|
|
441
441
|
importer.ReadTextureSettings(newSettings);
|
|
442
442
|
Vector2 origPivot = GetSpritePivot(importer);
|
|
443
443
|
Vector2 origCenter = new(width * origPivot.x, height * origPivot.y);
|
|
444
|
-
Vector2 newPivotPixels = origCenter - new Vector2(
|
|
444
|
+
Vector2 newPivotPixels = origCenter - new Vector2(visibleMinX, visibleMinY);
|
|
445
445
|
Vector2 newPivotNorm = new(
|
|
446
446
|
cropWidth > 0 ? newPivotPixels.x / cropWidth : 0.5f,
|
|
447
447
|
cropHeight > 0 ? newPivotPixels.y / cropHeight : 0.5f
|
package/package.json
CHANGED