mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 11:43:49 +00:00
unused variable cleanup
This commit is contained in:
parent
1131ed15df
commit
cc9955e102
9 changed files with 0 additions and 35 deletions
|
|
@ -1446,7 +1446,6 @@ void TSSkinMesh::setupVertexTransforms()
|
|||
for( i = 0, j = 0; i < curTransform.transformCount; i += 4, j += 1 )
|
||||
{
|
||||
__TSMeshVertex_BoneData &v = mVertexData.getBone(curTransform.vertexIndex, j);
|
||||
const BatchData::TransformOp &transformOp = curTransform.transform[i];
|
||||
S32 vertsSet = transformsLeft > 4 ? 4 : transformsLeft;
|
||||
|
||||
__TSMeshIndex_List indices;
|
||||
|
|
@ -3183,9 +3182,6 @@ U32 TSMesh::getNumVerts()
|
|||
|
||||
void TSMesh::_convertToVertexData(TSMeshVertexArray &outArray, const Vector<Point3F> &_verts, const Vector<Point3F> &_norms)
|
||||
{
|
||||
U32 colorOffset = 0;
|
||||
U32 boneOffset = 0;
|
||||
|
||||
// Update tangents list
|
||||
createTangents(verts, norms);
|
||||
|
||||
|
|
@ -3202,7 +3198,6 @@ void TSMesh::_convertToVertexData(TSMeshVertexArray &outArray, const Vector<Poin
|
|||
if (mNumVerts == 0)
|
||||
return;
|
||||
|
||||
bool needsSkin = mVertexFormat->hasBlendIndices();
|
||||
bool needWeightSet = outArray.getBoneOffset() != 0;
|
||||
|
||||
bool hasColor = getHasColor();
|
||||
|
|
@ -3240,8 +3235,6 @@ void TSMesh::_convertToVertexData(TSMeshVertexArray &outArray, const Vector<Poin
|
|||
|
||||
void TSMesh::makeEditable()
|
||||
{
|
||||
bool hasTVert2 = getHasTVert2();
|
||||
bool hasColor = getHasColor();
|
||||
bool hasVerts = verts.size() != 0;
|
||||
|
||||
if(mVertexData.isReady() && !hasVerts)
|
||||
|
|
@ -3293,8 +3286,6 @@ void TSSkinMesh::addWeightsFromVertexBuffer()
|
|||
|
||||
void TSSkinMesh::makeEditable()
|
||||
{
|
||||
bool hasTVert2 = getHasTVert2();
|
||||
bool hasColor = getHasColor();
|
||||
bool hasVerts = verts.size() != 0;
|
||||
|
||||
// Reconstruct bone mapping
|
||||
|
|
|
|||
|
|
@ -681,7 +681,6 @@ void TSShape::initVertexBuffers()
|
|||
if (TSSkinMesh::smDebugSkinVerts)
|
||||
{
|
||||
U32 vertsInBuffer = mShapeVertexData.size / mVertexSize;
|
||||
U32 primsInBuffer = piInput - mShapeVertexIndices->mPrimitiveArray;
|
||||
U32 indsInBuffer = ibIndices - indicesStart;
|
||||
|
||||
for (U32 i = 0; i < primStart; i++)
|
||||
|
|
@ -723,7 +722,6 @@ void TSShape::getVertexBuffer(TSVertexBufferHandle &vb, GFXBufferType bufferType
|
|||
{
|
||||
vb.set(GFX, mVertexSize, &mVertexFormat, mShapeVertexData.size / mVertexSize, bufferType);
|
||||
|
||||
U8 *vertexData = mShapeVertexData.base;
|
||||
U8 *vertPtr = vb.lock();
|
||||
dMemcpy(vertPtr, mShapeVertexData.base, mShapeVertexData.size);
|
||||
vb.unlock();
|
||||
|
|
@ -770,12 +768,6 @@ void TSShape::initVertexBufferPointers()
|
|||
|
||||
void TSShape::initVertexFeatures()
|
||||
{
|
||||
bool hasColors = false;
|
||||
bool hasTexcoord2 = false;
|
||||
bool hasSkin = false;
|
||||
U32 vertStart = 0;
|
||||
U32 primStart = 0;
|
||||
U32 indStart = 0;
|
||||
|
||||
if (!needsBufferUpdate())
|
||||
{
|
||||
|
|
@ -876,7 +868,6 @@ void TSShape::initVertexFeatures()
|
|||
for (Vector<TSMesh*>::iterator iter = meshes.begin(); iter != meshes.end(); iter++)
|
||||
{
|
||||
TSMesh *mesh = *iter;
|
||||
U32 idx = iter - meshes.begin();
|
||||
|
||||
if (!mesh ||
|
||||
(mesh->getMeshType() != TSMesh::StandardMeshType &&
|
||||
|
|
@ -1457,7 +1448,6 @@ void TSShape::assembleShape()
|
|||
if (tsalloc.getBuffer() && vboSize > 0)
|
||||
{
|
||||
U8 *vertexData = (U8*)dMalloc_aligned(vboSize, 16);
|
||||
U8 *vertexDataPtr = vertexData;
|
||||
dMemcpy(vertexData, vboData, vboSize);
|
||||
mShapeVertexData.set(vertexData, vboSize);
|
||||
mShapeVertexData.vertexDataReady = true;
|
||||
|
|
@ -1759,8 +1749,6 @@ void TSShape::disassembleShape()
|
|||
{
|
||||
// Vertex format now included with mesh data. Note this doesn't include index data which
|
||||
// is constructed directly in the buffer from the meshes
|
||||
S8 *vboData = NULL;
|
||||
S32 vboSize = 0;
|
||||
|
||||
mBasicVertexFormat.writeAlloc(&tsalloc);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue