Added cast to unsigned long in PretransformVertices.cpp. Hopefully this fixes the compiler issues with GCC4 on linux.
git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@190 67173fc5-114c-0410-ac8e-9d2fd5bffc1fpull/1/head
parent
8271164d74
commit
de476178cd
|
@ -93,7 +93,7 @@ unsigned int GetMeshVFormat(aiMesh* pcMesh)
|
||||||
// from scratch. The pointer is unused as animations are lost
|
// from scratch. The pointer is unused as animations are lost
|
||||||
// during PretransformVertices.
|
// during PretransformVertices.
|
||||||
if (pcMesh->mBones)
|
if (pcMesh->mBones)
|
||||||
return (unsigned int)pcMesh->mBones;
|
return (unsigned int)(unsigned long)pcMesh->mBones;
|
||||||
|
|
||||||
ai_assert(NULL != pcMesh->mVertices);
|
ai_assert(NULL != pcMesh->mVertices);
|
||||||
|
|
||||||
|
@ -123,7 +123,7 @@ unsigned int GetMeshVFormat(aiMesh* pcMesh)
|
||||||
while (pcMesh->HasVertexColors(p))iRet |= (0x1000000 << p++);
|
while (pcMesh->HasVertexColors(p))iRet |= (0x1000000 << p++);
|
||||||
|
|
||||||
// store the value for later use
|
// store the value for later use
|
||||||
pcMesh->mBones = (aiBone**)iRet;
|
pcMesh->mBones = (aiBone**)(unsigned long)iRet;
|
||||||
return iRet;
|
return iRet;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue