Commit cf8c269f authored by hybrid's avatar hybrid

Rename MoveTo_ methods in SSkinMeshBuffer for proper Irrlicht naming scheme.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2817 dfc29bdd-3216-0410-991c-e03cc46cb475
parent 5b994882
......@@ -187,7 +187,7 @@ struct SSkinMeshBuffer : public IMeshBuffer
}
//! Convert to 2tcoords vertex type
virtual void MoveTo_2TCoords()
virtual void convertTo2TCoords()
{
if (VertexType==video::EVT_STANDARD)
{
......@@ -206,7 +206,7 @@ struct SSkinMeshBuffer : public IMeshBuffer
}
//! Convert to tangents vertex type
virtual void MoveTo_Tangents()
virtual void convertToTangents()
{
if (VertexType==video::EVT_STANDARD)
{
......
......@@ -493,7 +493,7 @@ bool CB3DMeshFileLoader::readChunkTRIS(scene::SSkinMeshBuffer *meshBuffer, u32 m
{
//Check for lightmapping:
if (BaseVertices[ vertex_id[i] ].TCoords2 != core::vector2df(0.f,0.f))
meshBuffer->MoveTo_2TCoords(); //Will only affect the meshbuffer the first time this is called
meshBuffer->convertTo2TCoords(); //Will only affect the meshbuffer the first time this is called
//Add the vertex to the meshbuffer:
if (meshBuffer->VertexType == video::EVT_STANDARD)
......
......@@ -129,7 +129,7 @@ IAnimatedMesh* CDMFLoader::createMesh(io::IReadFile* file)
const bool use2TCoords = meshBuffer->Vertices_2TCoords.size() ||
materiali[faces[i].materialID].lightmapName.size();
if (use2TCoords && meshBuffer->Vertices_Standard.size())
meshBuffer->MoveTo_2TCoords();
meshBuffer->convertTo2TCoords();
const u32 base = meshBuffer->Vertices_2TCoords.size()?meshBuffer->Vertices_2TCoords.size():meshBuffer->Vertices_Standard.size();
// Add this face's verts
......
......@@ -1363,7 +1363,7 @@ void CSkinnedMesh::convertMeshToTangents()
{
if (LocalBuffers[b])
{
LocalBuffers[b]->MoveTo_Tangents();
LocalBuffers[b]->convertToTangents();
const s32 idxCnt = LocalBuffers[b]->getIndexCount();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment