diff options
author | Michael Fox <mfoxdogg@gmail.com> | 2011-02-16 03:04:37 +0300 |
---|---|---|
committer | Michael Fox <mfoxdogg@gmail.com> | 2011-02-16 03:04:37 +0300 |
commit | c195e68e8ea186e0c1e9dee5c6b081c90530fc6e (patch) | |
tree | 96c2ec059b4fda46243113bb80dac20d85d622d8 /source/gameengine/Converter | |
parent | b94be2aa14049dfd8c502edbd5d2fbf165dc5396 (diff) |
small correction to BGE as recent commits broken normal mapping in the GE
Diffstat (limited to 'source/gameengine/Converter')
-rw-r--r-- | source/gameengine/Converter/BL_BlenderDataConversion.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/gameengine/Converter/BL_BlenderDataConversion.cpp b/source/gameengine/Converter/BL_BlenderDataConversion.cpp index ab9882cab87..f1b70288c10 100644 --- a/source/gameengine/Converter/BL_BlenderDataConversion.cpp +++ b/source/gameengine/Converter/BL_BlenderDataConversion.cpp @@ -730,13 +730,13 @@ RAS_MeshObject* BL_ConvertMesh(Mesh* mesh, Object* blenderobj, KX_Scene* scene, MFace *mface = dm->getFaceArray(dm); MTFace *tface = static_cast<MTFace*>(dm->getFaceDataArray(dm, CD_MTFACE)); MCol *mcol = static_cast<MCol*>(dm->getFaceDataArray(dm, CD_MCOL)); - float (*tangent)[3] = NULL; + float (*tangent)[4] = NULL; int totface = dm->getNumFaces(dm); const char *tfaceName = ""; if(tface) { DM_add_tangent_layer(dm); - tangent = (float(*)[3])dm->getFaceDataArray(dm, CD_TANGENT); + tangent = (float(*)[4])dm->getFaceDataArray(dm, CD_TANGENT); } meshobj = new RAS_MeshObject(mesh); |