File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -239,7 +239,7 @@ def draw_callback_3d(operator, context):
239
239
240
240
def line (color , start , end ):
241
241
vertices = [start ,end ]
242
- shader = gpu .shader .from_builtin ('3D_UNIFORM_COLOR ' )
242
+ shader = gpu .shader .from_builtin ('UNIFORM_COLOR ' )
243
243
batch = batch_for_shader (shader ,'LINE_STRIP' , {"pos" : vertices })
244
244
shader .bind ()
245
245
shader .uniform_float ("color" , color )
@@ -305,7 +305,7 @@ def draw_callback_2d(operator, context):
305
305
306
306
def draw_poly (coords , color , width ):
307
307
# Get shader
308
- shader = gpu .shader .from_builtin ('3D_UNIFORM_COLOR ' )
308
+ shader = gpu .shader .from_builtin ('UNIFORM_COLOR ' )
309
309
# Create batch process
310
310
batch = batch_for_shader (shader ,'LINE_STRIP' , {"pos" : coords })
311
311
# Set the line width
You can’t perform that action at this time.
0 commit comments