[Bf-blender-cvs] [9d0d000c083] asset-greasepencil: GPencil: Remove rotation point from cage drawing
Antonio Vazquez
noreply at git.blender.org
Mon Jul 19 11:03:04 CEST 2021
Commit: 9d0d000c08335ce5df462583cba34bb4da7a266a
Author: Antonio Vazquez
Date: Sun Jul 18 23:09:12 2021 +0200
Branches: asset-greasepencil
https://developer.blender.org/rB9d0d000c08335ce5df462583cba34bb4da7a266a
GPencil: Remove rotation point from cage drawing
===================================================================
M source/blender/editors/gpencil/gpencil_asset.c
===================================================================
diff --git a/source/blender/editors/gpencil/gpencil_asset.c b/source/blender/editors/gpencil/gpencil_asset.c
index da334b46576..5e2a871a2df 100644
--- a/source/blender/editors/gpencil/gpencil_asset.c
+++ b/source/blender/editors/gpencil/gpencil_asset.c
@@ -943,8 +943,9 @@ static void gpencil_draw_cage(tGPDasset *tgpa)
immUniformColor4fv(point_color);
immUniform1f("size", UI_GetThemeValuef(TH_VERTEX_SIZE) * 1.5f * U.dpi_fac);
- immBegin(GPU_PRIM_POINTS, 9);
- for (int i = 0; i < 9; i++) {
+ /* Draw only box corners. */
+ immBegin(GPU_PRIM_POINTS, 8);
+ for (int i = 0; i < 8; i++) {
immVertex2fv(pos, tgpa->manipulator[i]);
}
immEnd();
More information about the Bf-blender-cvs
mailing list