瀏覽代碼

换装资源裁剪bugfix

guodong 2 年之前
父節點
當前提交
da36b76bf7
共有 1 個文件被更改,包括 1 次插入1 次删除
  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);