Skip to content

Commit 294f4e4

Browse files
authored
1 parent c53670f commit 294f4e4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dof-utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ def draw_callback_3d(operator, context):
239239

240240
def line(color, start, end):
241241
vertices = [start,end]
242-
shader = gpu.shader.from_builtin('3D_UNIFORM_COLOR')
242+
shader = gpu.shader.from_builtin('UNIFORM_COLOR')
243243
batch = batch_for_shader(shader,'LINE_STRIP', {"pos": vertices})
244244
shader.bind()
245245
shader.uniform_float("color", color)
@@ -305,7 +305,7 @@ def draw_callback_2d(operator, context):
305305

306306
def draw_poly(coords, color, width):
307307
# Get shader
308-
shader = gpu.shader.from_builtin('3D_UNIFORM_COLOR')
308+
shader = gpu.shader.from_builtin('UNIFORM_COLOR')
309309
# Create batch process
310310
batch = batch_for_shader(shader,'LINE_STRIP', {"pos": coords})
311311
# Set the line width

0 commit comments

Comments
 (0)