OFF: AI_MATKEY_TWOSIDED is now always set to 1.

git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@405 67173fc5-114c-0410-ac8e-9d2fd5bffc1f
pull/1/head
aramis_acg 2009-04-25 17:41:32 +00:00
parent 807e2de3f4
commit 01f558bcfe
1 changed files with 3 additions and 0 deletions

View File

@ -203,6 +203,9 @@ void OFFImporter::InternReadFile( const std::string& pFile,
aiColor4D clr(0.6f,0.6f,0.6f,1.0f); aiColor4D clr(0.6f,0.6f,0.6f,1.0f);
pcMat->AddProperty(&clr,1,AI_MATKEY_COLOR_DIFFUSE); pcMat->AddProperty(&clr,1,AI_MATKEY_COLOR_DIFFUSE);
pScene->mMaterials[0] = pcMat; pScene->mMaterials[0] = pcMat;
const int twosided =1;
pcMat->AddProperty(&twosided,1,AI_MATKEY_TWOSIDED);
} }
#endif // !! ASSIMP_BUILD_NO_OFF_IMPORTER #endif // !! ASSIMP_BUILD_NO_OFF_IMPORTER