diff options
author | Juan Linietsky <reduzio@gmail.com> | 2016-07-09 11:53:27 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2016-07-09 11:53:27 -0300 |
commit | 90f8a3bd29d9119fb4e34ec738df7583a41e7ea5 (patch) | |
tree | 3d39670ed7056f02e2340af1263080c258c720b3 /tools/editor | |
parent | 2980b27befbae4161675af006b0f8bf004970230 (diff) |
properly generate tangents only upon request, closes #5580
Diffstat (limited to 'tools/editor')
-rw-r--r-- | tools/editor/io_plugins/editor_mesh_import_plugin.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/editor/io_plugins/editor_mesh_import_plugin.cpp b/tools/editor/io_plugins/editor_mesh_import_plugin.cpp index 095c56a373..2c3ed2afd6 100644 --- a/tools/editor/io_plugins/editor_mesh_import_plugin.cpp +++ b/tools/editor/io_plugins/editor_mesh_import_plugin.cpp @@ -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(); |