Fix missing vertices in some imported models
The Spatial Sort version was being too greedy when merging vertices
This commit is contained in:
@@ -165,7 +165,7 @@ int32 FindVertex(const MeshData& mesh, int32 vertexIndex, int32 startIndex, int3
|
|||||||
|
|
||||||
#if USE_SPATIAL_SORT
|
#if USE_SPATIAL_SORT
|
||||||
const Float3 vPosition = mesh.Positions[vertexIndex];
|
const Float3 vPosition = mesh.Positions[vertexIndex];
|
||||||
spatialSort.FindPositions(*(aiVector3D*)&vPosition, 1e-4f, spatialSortCache);
|
spatialSort.FindPositions(*(aiVector3D*)&vPosition, 1e-5f, spatialSortCache);
|
||||||
if (spatialSortCache.empty())
|
if (spatialSortCache.empty())
|
||||||
return INVALID_INDEX;
|
return INVALID_INDEX;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user