Enhance blender scene materials export (issue #3264)

In this branch I implemented jukkako's request #3264.