Explorar el Código

换装资源裁剪bugfix

guodong hace 2 años
padre
commit
da36b76bf7
Se han modificado 1 ficheros con 1 adiciones y 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);