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:
Diffstat (limited to 'archimesh')
-rw-r--r--archimesh/achm_gltools.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/archimesh/achm_gltools.py b/archimesh/achm_gltools.py
index c53d7a88..981082d0 100644
--- a/archimesh/achm_gltools.py
+++ b/archimesh/achm_gltools.py
@@ -38,7 +38,7 @@ import bgl
import gpu
from gpu_extras.batch import batch_for_shader
-shader = gpu.shader.from_builtin('2D_UNIFORM_COLOR')
+shader = gpu.shader.from_builtin('2D_UNIFORM_COLOR') if not bpy.app.background else None
# -------------------------------------------------------------
# Handle all draw routines (OpenGL main entry point)