Explorar o código

换装资源裁剪bugfix

guodong %!s(int64=2) %!d(string=hai) anos
pai
achega
da36b76bf7
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      GameClient/Assets/Editor/ArtsRes/ImagesClip/ImagesClip.cs

+ 1 - 1
GameClient/Assets/Editor/ArtsRes/ImagesClip/ImagesClip.cs

@@ -88,7 +88,7 @@ public class ImagesClip : MonoBehaviour
             }
             if (find) break;
         }
-        bmp = Cut(bmp, left, top, right - left, bottom - top);
+        bmp = Cut(bmp, left, top, right - left + 1, bottom - top + 1);
         if (bmp != null)
         {
             bmp.Save(TargetPath + fileName);