prevented cast/unused/uninitialized warnings and some indentation work.
This commit is contained in:
parent
939da657a9
commit
08f9b6a4b3
|
|
@ -691,6 +691,8 @@ static Matrix44f getTransfMatrixFromNode(const QDomElement parentNode)
|
|||
|
||||
static int Open(OpenMeshType& m,const char* filename, InfoDAE& info, CallBackPos *cb=0)
|
||||
{
|
||||
(void)cb;
|
||||
|
||||
QDEBUG("----- Starting the processing of %s ------",filename);
|
||||
//AdditionalInfoDAE& inf = new AdditionalInfoDAE();
|
||||
//info = new InfoDAE();
|
||||
|
|
|
|||
|
|
@ -916,7 +916,7 @@ static bool LoadMask(const char * filename, int &mask)
|
|||
|
||||
materials.clear();
|
||||
Material currentMaterial;
|
||||
currentMaterial.index = -1;
|
||||
currentMaterial.index = (unsigned int)(-1);
|
||||
|
||||
bool first = true;
|
||||
while (!stream.eof())
|
||||
|
|
@ -935,7 +935,7 @@ static bool LoadMask(const char * filename, int &mask)
|
|||
{
|
||||
materials.push_back(currentMaterial);
|
||||
currentMaterial = Material();
|
||||
currentMaterial.index = -1;
|
||||
currentMaterial.index = (unsigned int)(-1);
|
||||
}
|
||||
else
|
||||
first = false;
|
||||
|
|
|
|||
|
|
@ -638,7 +638,7 @@ namespace io {
|
|||
if(fnameV != nameV) return VMI_INCOMPATIBLE_VERTEX_TYPE;
|
||||
if(fnameF != nameF) return VMI_INCOMPATIBLE_FACE_TYPE;
|
||||
|
||||
int offsetV,offsetF;
|
||||
int offsetV=0,offsetF=0;
|
||||
|
||||
if(vertSize!=0)
|
||||
/* read the address of the first vertex */
|
||||
|
|
|
|||
Loading…
Reference in New Issue