From a84ba9c853f972f8e666b17f3e0f875b7282e6c1 Mon Sep 17 00:00:00 2001 From: Juan Linietsky Date: Tue, 14 Oct 2014 01:01:25 -0300 Subject: Collada -=-=-=- -Fixed some DAE import & export bugs -Changed Collada exporter to use the mesh loops API -Added tangent export to Collada exporter -Added triangulation option to Collada exporter -Changed a little how normalmaps are handled in shader. Not sure if it's working properly, be careful. -Fixed some strange bug with kinematic bodies #776 -Fix release compilaiton issues #782 --- tools/editor/io_plugins/editor_import_collada.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tools/editor/io_plugins') diff --git a/tools/editor/io_plugins/editor_import_collada.cpp b/tools/editor/io_plugins/editor_import_collada.cpp index ffd90cc8a3..405f8a01e8 100644 --- a/tools/editor/io_plugins/editor_import_collada.cpp +++ b/tools/editor/io_plugins/editor_import_collada.cpp @@ -749,7 +749,7 @@ Error ColladaImport::_create_mesh_surfaces(Ref& p_mesh,const Maparray[tangent_pos+0],tangent_src->array[tangent_pos+1],tangent_src->array[tangent_pos+2]); vertex.tangent.normal=tangent; - vertex.tangent.d= vertex.normal.cross(tangent).dot(binormal) > 0 ? -1 : 1; + vertex.tangent.d= vertex.normal.cross(tangent).dot(binormal) > 0 ? 1 : -1; } } @@ -784,6 +784,8 @@ Error ColladaImport::_create_mesh_surfaces(Ref& p_mesh,const Map