Move tangents and baking to looptris:
authorAntony Riakiotakis <kalast@gmail.com>
Thu, 30 Jul 2015 12:43:58 +0000 (14:43 +0200)
committerAntony Riakiotakis <kalast@gmail.com>
Thu, 30 Jul 2015 12:43:58 +0000 (14:43 +0200)
commit2ec00ea0c1be1ace7cd0c7b68e43cc8e87dd07c7
treebcea6f830039d7ef67dcd1a9a95b767d2af19958
parent9d335d29c775939b22dffedc303ecce9fec4e52f
Move tangents and baking to looptris:

Notes:

* Code in rendering and in game engine will still convert
tangents to a tessface representation. Added code that
takes care of tangent layer only, might be removed
when BGE and rendering goes full mlooptri mode.

* Baking should work discovered some dead code while
I was working on the patch, also tangents are broken
when baking from multires (also in master), but those
are separate issues that can be fixed later.

This should fix T45491 as well
12 files changed:
source/blender/blenkernel/BKE_DerivedMesh.h
source/blender/blenkernel/BKE_mesh.h
source/blender/blenkernel/BKE_multires.h
source/blender/blenkernel/intern/DerivedMesh.c
source/blender/blenkernel/intern/cdderivedmesh.c
source/blender/blenkernel/intern/customdata.c
source/blender/blenkernel/intern/mesh_evaluate.c
source/blender/blenkernel/intern/multires.c
source/blender/render/intern/source/bake_api.c
source/blender/render/intern/source/convertblender.c
source/blender/render/intern/source/multires_bake.c
source/gameengine/Converter/BL_BlenderDataConversion.cpp