Whinarn / UnityMeshSimplifier

Mesh simplification for Unity.
MIT License
1.74k stars 276 forks source link

Fix to the second issue 27 #29

Closed bawar9 closed 4 years ago

bawar9 commented 4 years ago

Hi i have found a fix to the second issue (when combing Skinned meshes in the Troll model) listed here https://github.com/Whinarn/UnityMeshSimplifier/issues/27. It was due to the incorrect calculation of combined vertices position in local space.

I have also fixed another small problem with a condition that needed to be changed and caused the error "The mesh filter for renderer at index{x} has no mesh." when collecting MeshFilters with no meshes during generation of LOD levels. You can confirm that the error did occur when Generating LODs for the same Troll model prior to my changes. Here is the Unity Package with the troll model https://filebin.net/c0b5quc8gjbrm3py/MeshCombineBug.unitypackage?t=uextr26c