From 2ce8b01c597c232d165ef2c004e3cd8d9db22cbf Mon Sep 17 00:00:00 2001 From: Germano Cavalcante Date: Mon, 19 Sep 2022 09:39:48 -0300 Subject: PyGPU: call 'GPU_shader_bind' in 'GPUShader.uniform_' methods This simplifies python code. When we call a method like shader.uniform_float("color", (1,1,1,1)), we expect the shader's uniform to be updated regardless of whether the shader is bound or not. And `batch.draw()` already calls `GPU_shader_bind` inside. Differential Revision: https://developer.blender.org/D15929 --- release/scripts/modules/bpy_types.py | 1 - 1 file changed, 1 deletion(-) (limited to 'release/scripts/modules/bpy_types.py') diff --git a/release/scripts/modules/bpy_types.py b/release/scripts/modules/bpy_types.py index b2f4d71ed92..d8d6a9123f2 100644 --- a/release/scripts/modules/bpy_types.py +++ b/release/scripts/modules/bpy_types.py @@ -742,7 +742,6 @@ class Gizmo(StructRNA): matrix = self.matrix_world batch, shader = shape - shader.bind() if select_id is not None: gpu.select.load_id(select_id) -- cgit v1.2.3