Update leenkx/blender/lnx/lightmapper/utility/gui/Viewport.py
This commit is contained in:
parent
38f72101eb
commit
8efe115698
@ -28,7 +28,11 @@ class ViewportDraw:
|
||||
w = 400
|
||||
h = 200
|
||||
|
||||
self.shader = gpu.shader.from_builtin('2D_IMAGE')
|
||||
if bpy.app.version[0] == 3:
|
||||
self.shader = gpu.shader.from_builtin('2D_IMAGE')
|
||||
else:
|
||||
self.shader = gpu.shader.from_builtin('IMAGE')
|
||||
|
||||
self.batch = batch_for_shader(
|
||||
self.shader, 'TRI_FAN',
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user