# fix unit tests, although static linkage to Assimp is a requirement or symbols will be missing. This involves declaring some members of certain pp step classes public to give the tests access to them. Those are harmless and completely safe to use from outside, though.
git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@1092 67173fc5-114c-0410-ac8e-9d2fd5bffc1f
This commit is contained in:
@@ -36,8 +36,8 @@ void RemoveVCProcessTest :: setUp (void)
|
||||
pScene->mTextures[1] = new aiTexture();
|
||||
|
||||
pScene->mMaterials = new aiMaterial*[pScene->mNumMaterials = 2];
|
||||
pScene->mMaterials[0] = new MaterialHelper();
|
||||
pScene->mMaterials[1] = new MaterialHelper();
|
||||
pScene->mMaterials[0] = new aiMaterial();
|
||||
pScene->mMaterials[1] = new aiMaterial();
|
||||
|
||||
pScene->mLights = new aiLight*[pScene->mNumLights = 2];
|
||||
pScene->mLights[0] = new aiLight();
|
||||
@@ -47,9 +47,9 @@ void RemoveVCProcessTest :: setUp (void)
|
||||
pScene->mCameras[0] = new aiCamera();
|
||||
pScene->mCameras[1] = new aiCamera();
|
||||
|
||||
// COMPILE TEST: MaterialHelper may no add any extra members,
|
||||
// COMPILE TEST: aiMaterial may no add any extra members,
|
||||
// so we don't need a virtual destructor
|
||||
char check[sizeof(MaterialHelper) == sizeof(aiMaterial) ? 10 : -1];
|
||||
char check[sizeof(aiMaterial) == sizeof(aiMaterial) ? 10 : -1];
|
||||
check[0] = 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user