From a094f30a74524bef8db4d91ef056bd464e3bf7f5 Mon Sep 17 00:00:00 2001 From: RiverIntheSky Date: Sun, 5 Feb 2023 21:21:30 +0100 Subject: [PATCH] Fix T104363: BLI_assert 'attr->comp_len == 3' failed in cage 2d gizmo --- source/blender/editors/gizmo_library/gizmo_types/cage2d_gizmo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/blender/editors/gizmo_library/gizmo_types/cage2d_gizmo.c b/source/blender/editors/gizmo_library/gizmo_types/cage2d_gizmo.c index b1bf1a7b542..55f7319b2f0 100644 --- a/source/blender/editors/gizmo_library/gizmo_types/cage2d_gizmo.c +++ b/source/blender/editors/gizmo_library/gizmo_types/cage2d_gizmo.c @@ -592,7 +592,7 @@ static void cage2d_draw_rect_handles(const rctf *r, static void cage2d_draw_central_handle(const float color[3], const float margin[2]) { - uint pos = GPU_vertformat_attr_add(immVertexFormat(), "pos", GPU_COMP_F32, 2, GPU_FETCH_FLOAT); + uint pos = GPU_vertformat_attr_add(immVertexFormat(), "pos", GPU_COMP_F32, 3, GPU_FETCH_FLOAT); const float rad[2] = {margin[0] * 0.25f, margin[1] * 0.25f};