Revision: 47922
          
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=47922
Author:   aramis_acg
Date:     2012-06-14 21:52:40 +0000 (Thu, 14 Jun 2012)
Log Message:
-----------
- bf_assimp: fix stupid bug reading UVs.

Modified Paths:
--------------
    branches/soc-2012-bratwurst/source/blender/assimp/MeshImporter.cpp

Modified: branches/soc-2012-bratwurst/source/blender/assimp/MeshImporter.cpp
===================================================================
--- branches/soc-2012-bratwurst/source/blender/assimp/MeshImporter.cpp  
2012-06-14 21:51:29 UTC (rev 47921)
+++ branches/soc-2012-bratwurst/source/blender/assimp/MeshImporter.cpp  
2012-06-14 21:52:40 UTC (rev 47922)
@@ -348,7 +348,7 @@
                                        for (int j = 0; j < f.mNumIndices; ++j){
                                                const aiVector3D& v = 
m.mTextureCoords[k][f.mIndices[j]];
                                                mtface[face_index].uv[j][0] = 
v.x;
-                                               mtface[face_index].uv[j][0] = 
v.y;
+                                               mtface[face_index].uv[j][1] = 
v.y;
                                        }                               
                                }
 
@@ -385,7 +385,7 @@
                                                for (int j = 0; j < 3; ++j){
                                                        const aiVector3D& v = 
m.mTextureCoords[k][tri_indices[j]];
                                                        
mtface[face_index].uv[j][0] = v.x;
-                                                       
mtface[face_index].uv[j][0] = v.y;
+                                                       
mtface[face_index].uv[j][1] = v.y;
                                                }                               
                                        }
 

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to