Remove aiCreateAndRegisterDefaultMaterial, it's completely wrong

This commit is contained in:
Turo Lamminen
2018-09-10 16:41:12 +03:00
parent a7c13eef2c
commit c3d8464a37
6 changed files with 3 additions and 56 deletions

View File

@@ -178,7 +178,6 @@ Importer::~Importer()
{
// Delete all import plugins
DeleteImporterInstanceList(pimpl->mImporter);
aiReleaseDefaultMaterial();
// Delete all post-processing plug-ins
for( unsigned int a = 0; a < pimpl->mPostProcessingSteps.size(); a++)
@@ -385,7 +384,6 @@ void Importer::FreeScene( )
{
ASSIMP_BEGIN_EXCEPTION_REGION();
aiReleaseDefaultMaterial();
delete pimpl->mScene;
pimpl->mScene = NULL;