Browse Source

换装资源裁剪bugfix

guodong 2 years ago
parent
commit
da36b76bf7
1 changed files with 1 additions and 1 deletions
  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;
             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)
         if (bmp != null)
         {
         {
             bmp.Save(TargetPath + fileName);
             bmp.Save(TargetPath + fileName);