properly generate tangents only upon request, closes #5580
This commit is contained in:
parent
2980b27bef
commit
90f8a3bd29
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue