Commit: a094f30a74524bef8db4d91ef056bd464e3bf7f5
Author: RiverIntheSky
Date: Sun Feb 5 21:21:30 2023 +0100
Branches: master
https://developer.blender.org/rBa094f30a74524bef8db4d91ef056bd464e3bf7f5
Fix T104363: BLI_assert 'attr->comp_len == 3' failed in cage 2d gizmo
===================================================================
M source/blender/editors/gizmo_library/gizmo_types/cage2d_gizmo.c
===================================================================
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};
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
List details, subscription details or unsubscribe:
https://lists.blender.org/mailman/listinfo/bf-blender-cvs