From 7fa4be0b07ed668140ea1d0918239a76d0d4d114 Mon Sep 17 00:00:00 2001 From: LeenkxTeam Date: Sun, 14 Dec 2025 20:29:53 +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..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):