exdev / ex2d-dev

2D framework and pipeline for Unity3D
ex-dev.com/ex2d
GNU General Public License v3.0
6 stars 3 forks source link

inspector自动更改sprite类型时,出现报错 #69

Closed jareguo closed 9 years ago

jareguo commented 10 years ago

重现步骤,选择任一tiled sprite,更改为sliced textureInfo,这时sprite type会被自动设为sliced,但也同时出现报错。 Failed setting triangles. Some indices are referencing out of bounds vertices. UnityEngine.Mesh:set_triangles(Int32[]) exMesh:FlushBuffers(Mesh, exUpdateFlags, exList1, exList1, exList1, exList1) (at Assets/ex2D/Runtime/Components/Internal/exMesh.cs:199) exMesh:Apply(exUpdateFlags) (at Assets/ex2D/Runtime/Components/Internal/exMesh.cs:227) exLayer:UpdateSprites() (at Assets/ex2D/Runtime/Components/exLayer.cs:336) ex2DRenderer:UpdateLayers() (at Assets/ex2D/Runtime/Components/ex2DRenderer.cs:282) ex2DRenderer:LateUpdate() (at Assets/ex2D/Runtime/Components/ex2DRenderer.cs:129)