BUGFIX: Fix compiler warning: wrong initialization order in initlist.
git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@516 67173fc5-114c-0410-ac8e-9d2fd5bffc1fpull/1/head
parent
713d4e4b4e
commit
9730eb6490
|
@ -197,8 +197,8 @@ void TerragenImporter::InternReadFile( const std::string& pFile,
|
||||||
aiFace* f = m->mFaces = new aiFace[m->mNumFaces = (x-1)*(y-1)];
|
aiFace* f = m->mFaces = new aiFace[m->mNumFaces = (x-1)*(y-1)];
|
||||||
aiVector3D* pv = m->mVertices = new aiVector3D[m->mNumVertices = m->mNumFaces*4];
|
aiVector3D* pv = m->mVertices = new aiVector3D[m->mNumVertices = m->mNumFaces*4];
|
||||||
|
|
||||||
aiVector3D* uv;
|
aiVector3D *uv( NULL );
|
||||||
float step_y,step_x;
|
float step_y( 0.0f ),step_x( 0.0f );
|
||||||
if (configComputeUVs) {
|
if (configComputeUVs) {
|
||||||
uv = m->mTextureCoords[0] = new aiVector3D[m->mNumVertices];
|
uv = m->mTextureCoords[0] = new aiVector3D[m->mNumVertices];
|
||||||
step_y = 1.f/y;
|
step_y = 1.f/y;
|
||||||
|
|
Loading…
Reference in New Issue