diff --git a/.circleci/config.yml b/.circleci/config.yml index 22bc43e..41c50ef 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -24,10 +24,10 @@ jobs: <<: *test-2019 environment: TEST_PLATFORM: editmode - test-playmode-2019: - <<: *test-2019 - environment: - TEST_PLATFORM: playmode +# test-playmode-2019: +# <<: *test-2019 +# environment: +# TEST_PLATFORM: playmode workflows: version: 2 @@ -35,5 +35,5 @@ workflows: jobs: - test-editmode-2019: context: Unity - - test-playmode-2019: - context: Unity +# - test-playmode-2019: +# context: Unity diff --git a/CHANGELOG.md b/CHANGELOG.md index 4e4dd8b..cd4b8d5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,10 @@ +## [2.3.3](https://github.com/Whinarn/UnityMeshSimplifier/compare/v2.3.2...v2.3.3) (2020-05-01) + + +### Bug Fixes + +* **mesh:** bug related to degenerated triangle when using smart linking ([e9d5def](https://github.com/Whinarn/UnityMeshSimplifier/commit/e9d5def2eb6e18eed7e9f86943e5d32bf0721d60)) + ## [2.3.2](https://github.com/Whinarn/UnityMeshSimplifier/compare/v2.3.1...v2.3.2) (2020-04-30) diff --git a/Runtime/MeshSimplifier.cs b/Runtime/MeshSimplifier.cs index 24dc544..a921d54 100644 --- a/Runtime/MeshSimplifier.cs +++ b/Runtime/MeshSimplifier.cs @@ -1,4 +1,4 @@ -#region License +#region License /* MIT License @@ -1176,19 +1176,15 @@ private void UpdateReferences() int v1 = triangles[i].v1; int v2 = triangles[i].v2; int start0 = vertices[v0].tstart; - int count0 = vertices[v0].tcount; + int count0 = vertices[v0].tcount++; int start1 = vertices[v1].tstart; - int count1 = vertices[v1].tcount; + int count1 = vertices[v1].tcount++; int start2 = vertices[v2].tstart; - int count2 = vertices[v2].tcount; + int count2 = vertices[v2].tcount++; refs[start0 + count0].Set(i, 0); refs[start1 + count1].Set(i, 1); refs[start2 + count2].Set(i, 2); - - ++vertices[v0].tcount; - ++vertices[v1].tcount; - ++vertices[v2].tcount; } } #endregion diff --git a/package.json b/package.json index 1a625df..6af7028 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "com.whinarn.unitymeshsimplifier", "displayName": "Unity Mesh Simplifier", - "version": "2.3.2", + "version": "2.3.3", "unity": "2017.1", "description": "Simplifies 3D meshes with ease. Works both in the editor and during runtime in builds.", "type": "library",