Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2020-08-01 10:22:10 +0300
committerCampbell Barton <ideasman42@gmail.com>2020-08-01 10:22:10 +0300
commit7da2a313f91e3ec0c3ae3602c1e09e09c8c19f21 (patch)
tree4cbbde1a86bca757ca8698d779ee606e55f0f15a
parent2f73d67f25ccc538717b10d6bfbcafbc3591c372 (diff)
Fix T79438: Export UV Layout doesn't respect UVs alpha
-rw-r--r--io_mesh_uv_layout/export_uv_png.py1
1 files changed, 1 insertions, 0 deletions
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)