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 'mesh_inset/__init__.py')
-rw-r--r--mesh_inset/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesh_inset/__init__.py b/mesh_inset/__init__.py
index 781b6962..8702b390 100644
--- a/mesh_inset/__init__.py
+++ b/mesh_inset/__init__.py
@@ -63,7 +63,7 @@ HEIGHT_VALUE = 1
NUM_VALUES = 2
# TODO: make a dooted-line shader
-shader = gpu.shader.from_builtin('2D_UNIFORM_COLOR')
+shader = gpu.shader.from_builtin('2D_UNIFORM_COLOR') if not bpy.app.background else None
class MESH_OT_InsetStraightSkeleton(bpy.types.Operator):
bl_idname = "mesh.insetstraightskeleton"