From 6a914782a5dd278f06622445c41a54bd5b5837a0 Mon Sep 17 00:00:00 2001 From: Onek8 Date: Thu, 5 Mar 2026 01:28:23 +0000 Subject: [PATCH] Update leenkx/blender/lnx/lightmapper/utility/gui/Viewport.py --- leenkx/blender/lnx/lightmapper/utility/gui/Viewport.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/leenkx/blender/lnx/lightmapper/utility/gui/Viewport.py b/leenkx/blender/lnx/lightmapper/utility/gui/Viewport.py index 4e1484a..6a8663c 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):