Fix for importer not reusing materials properly.