[Bf-blender-cvs] [d37d6b5a4d8] blender2.8: Edit Mesh Selection: Fix wrong glPointSize position
Germano
noreply at git.blender.org
Mon Dec 4 15:32:56 CET 2017
Commit: d37d6b5a4d85a9bbace0e74f96e8eb6a5a4c056e
Author: Germano
Date: Mon Dec 4 12:32:45 2017 -0200
Branches: blender2.8
https://developer.blender.org/rBd37d6b5a4d85a9bbace0e74f96e8eb6a5a4c056e
Edit Mesh Selection: Fix wrong glPointSize position
===================================================================
M source/blender/editors/space_view3d/drawobject.c
===================================================================
diff --git a/source/blender/editors/space_view3d/drawobject.c b/source/blender/editors/space_view3d/drawobject.c
index fd549748bce..615fdd615d3 100644
--- a/source/blender/editors/space_view3d/drawobject.c
+++ b/source/blender/editors/space_view3d/drawobject.c
@@ -9458,6 +9458,8 @@ static void bbs_mesh_verts(BMEditMesh *em, DerivedMesh *dm, int offset)
#else
static void bbs_mesh_verts(BMEditMesh *em, DerivedMesh *UNUSED(dm), int offset)
{
+ glPointSize(UI_GetThemeValuef(TH_VERTEX_SIZE));
+
Mesh *me = em->ob->data;
Gwn_Batch *batch = DRW_mesh_batch_cache_get_verts_with_select_id(me, offset);
GWN_batch_program_set_builtin(batch, GPU_SHADER_3D_FLAT_COLOR_U32);
@@ -9508,8 +9510,6 @@ static void bbs_mesh_wire(BMEditMesh *em, DerivedMesh *dm, int offset)
#else
static void bbs_mesh_wire(BMEditMesh *em, DerivedMesh *UNUSED(dm), int offset)
{
- glPointSize(UI_GetThemeValuef(TH_VERTEX_SIZE));
-
Mesh *me = em->ob->data;
Gwn_Batch *batch = DRW_mesh_batch_cache_get_edges_with_select_id(me, offset);
GWN_batch_program_set_builtin(batch, GPU_SHADER_3D_FLAT_COLOR_U32);
More information about the Bf-blender-cvs
mailing list