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
|
//new object/surface
|
||||||
if (generate_normals || force_smooth)
|
if (generate_normals || force_smooth)
|
||||||
surf_tool->generate_normals();
|
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->generate_tangents();
|
||||||
|
|
||||||
surf_tool->index();
|
surf_tool->index();
|
||||||
|
|
Loading…
Reference in New Issue