diff --git a/leenkx/blender/lnx/lightmapper/utility/gui/Viewport.py b/leenkx/blender/lnx/lightmapper/utility/gui/Viewport.py index 4e1484a..f338f82 100644 --- a/leenkx/blender/lnx/lightmapper/utility/gui/Viewport.py +++ b/leenkx/blender/lnx/lightmapper/utility/gui/Viewport.py @@ -1,6 +1,9 @@ -import bpy, blf, bgl, os, gpu +import bpy, blf, os, gpu from gpu_extras.batch import batch_for_shader +if bpy.app.version < (4, 0, 0): + import bgl + class ViewportDraw: def __init__(self, context, text):