patch by Charlie, related to recent changes of multi-uv/lightmap generation. This...
[blender-staging.git] / source / gameengine / Rasterizer / RAS_MeshObject.cpp
index 360939f71e0ed778e0090c9dff784bc907f58451..4219b641b5ca04c8b64e6c611ded1e40866b68c9 100644 (file)
@@ -255,6 +255,7 @@ void RAS_MeshObject::ScheduleWireframePoly(const KX_VertexIndex& idx,
 int RAS_MeshObject::FindOrAddVertex(int vtxarray,
                                                                        const MT_Point3& xyz,
                                                                        const MT_Point2& uv,
+                                                                       const MT_Point2& uv2,
                                                                        const MT_Vector4& tangent,
                                                                        const unsigned int rgbacolor,
                                                                        const MT_Vector3& normal,
@@ -264,7 +265,7 @@ int RAS_MeshObject::FindOrAddVertex(int vtxarray,
        KX_ArrayOptimizer* ao = GetArrayOptimizer(mat);//*(m_matVertexArrays[*mat]);
        
        int numverts = ao->m_VertexArrayCache1[vtxarray]->size();//m_VertexArrayCount[vtxarray];
-       RAS_TexVert newvert(xyz,uv,tangent,rgbacolor,normal, 0);
+       RAS_TexVert newvert(xyz,uv,uv2,tangent,rgbacolor,normal, 0);
 #define KX_FIND_SHARED_VERTICES
 #ifdef KX_FIND_SHARED_VERTICES