silverslade / aframe_blender_exporter

Blender Exporter for A-Frame VR
MIT License
103 stars 17 forks source link

Fix saving to PNG #7

Closed jure closed 3 years ago

jure commented 3 years ago

I've encountered an issue in Blender 2.90.1 (though I haven't tried different versions), where if I try to save the lightmaps, I get files that end with '.png' but don't appear to be PNGs. I think the issue is that the image via save_render is saved with the file_format set for the scene, regardless of what img.file_format is. I've been using this way of saving the image and it seems to work fine.

Happy to adjust or withdraw the PR if I'm doing something wrong, though! Just started using your addon! Amazing stuff :)