add flush function and call it when we use setExtraTechnique
Merge pull request #1 from Gargaj/materialextrafix

merge extra material export fix