com.wallstop-studios.unity-helpers 2.0.0-rc73.13 → 2.0.0-rc73.14
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.
- package/Editor/SpriteCropper.cs +2 -2
- package/package.json +2 -1
package/Editor/SpriteCropper.cs
CHANGED
|
@@ -302,9 +302,7 @@
|
|
|
302
302
|
int maxX = 0;
|
|
303
303
|
int maxY = 0;
|
|
304
304
|
bool hasVisible = false;
|
|
305
|
-
|
|
306
305
|
object lockObject = new();
|
|
307
|
-
|
|
308
306
|
Parallel.For(
|
|
309
307
|
0,
|
|
310
308
|
width * height,
|
|
@@ -353,6 +351,8 @@
|
|
|
353
351
|
{
|
|
354
352
|
cropWidth = 1;
|
|
355
353
|
cropHeight = 1;
|
|
354
|
+
minX = 0;
|
|
355
|
+
minY = 0;
|
|
356
356
|
}
|
|
357
357
|
|
|
358
358
|
Texture2D cropped = new(cropWidth, cropHeight, TextureFormat.RGBA32, false);
|
package/package.json
CHANGED