ousnius / nifly

C++ NIF library for the Gamebryo/NetImmerse File Format
GNU General Public License v3.0
54 stars 21 forks source link

Improved SortingMatcher so it'll work better at small scales. #23

Closed sts1skj closed 2 years ago

sts1skj commented 2 years ago

With textures off, and a shape scale of about .001 or lower, the normals were visibly incorrect in Outfit Studio. This was because at these scales points were being determined to be welded when they shouldn't have been. That was because SortingMatcher, which is used by CalcWeldVerts, had an epsilon that did not vary with scale. This PR fixes that.