properly generate tangents only upon request, closes #5580

This commit is contained in:
Juan Linietsky 2016-07-09 11:53:27 -03:00
parent 2980b27bef
commit 90f8a3bd29
1 changed files with 1 additions and 1 deletions

View File

@ -520,7 +520,7 @@ Error EditorMeshImportPlugin::import(const String& p_path, const Ref<ResourceImp
//new object/surface
if (generate_normals || force_smooth)
surf_tool->generate_normals();
if (uvs.size() && (normals.size() || generate_normals))
if (uvs.size() && (normals.size() || generate_normals) && generate_tangents)
surf_tool->generate_tangents();
surf_tool->index();