[Bf-extensions-cvs] [7da2a313] blender-v2.90-release: Fix T79438: Export UV Layout doesn't respect UVs alpha

Campbell Barton noreply at git.blender.org
Sat Aug 1 09:22:39 CEST 2020


Commit: 7da2a313f91e3ec0c3ae3602c1e09e09c8c19f21
Author: Campbell Barton
Date:   Sat Aug 1 17:22:10 2020 +1000
Branches: blender-v2.90-release
https://developer.blender.org/rBA7da2a313f91e3ec0c3ae3602c1e09e09c8c19f21

Fix T79438: Export UV Layout doesn't respect UVs alpha

===================================================================

M	io_mesh_uv_layout/export_uv_png.py

===================================================================

diff --git a/io_mesh_uv_layout/export_uv_png.py b/io_mesh_uv_layout/export_uv_png.py
index f831402f..7fd3ba09 100644
--- a/io_mesh_uv_layout/export_uv_png.py
+++ b/io_mesh_uv_layout/export_uv_png.py
@@ -30,6 +30,7 @@ def export(filepath, face_data, colors, width, height, opacity):
     offscreen.bind()
 
     try:
+        bgl.glClearColor(0.0, 0.0, 0.0, 0.0)
         bgl.glClear(bgl.GL_COLOR_BUFFER_BIT)
         draw_image(face_data, opacity)



More information about the Bf-extensions-cvs mailing list