Enhance blender scene materials export (issue #3264)

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