Commit 936a35c9 authored by Alexis Girault's avatar Alexis Girault
Browse files

BUG: Do not compute tangents if not textCoords

parent 1ad7587b
......@@ -37,7 +37,10 @@ SurfaceMesh::initialize(const std::vector<Vec3d>& vertices,
if (computeDerivedData)
{
computeVerticesNormals();
computeVerticesTangents();
if (!texCoords.empty())
{
computeVerticesTangents();
}
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment