Commit: afc885cd13a98fca347eee1af472099f6e9a9c03
Author: Campbell Barton
Date:   Thu Apr 20 21:13:18 2017 +1000
Branches: blender2.8
https://developer.blender.org/rBafc885cd13a98fca347eee1af472099f6e9a9c03

Draw Manager: round vertex size up

Without this assigning `gl_PointSize = sizeVertex`
made vertices too small.

===================================================================

M       source/blender/draw/intern/draw_common.c

===================================================================

diff --git a/source/blender/draw/intern/draw_common.c 
b/source/blender/draw/intern/draw_common.c
index 7fd1b41c0e4..7d4fbf9b7fd 100644
--- a/source/blender/draw/intern/draw_common.c
+++ b/source/blender/draw/intern/draw_common.c
@@ -99,8 +99,8 @@ void DRW_globals_update(void)
        ts.sizeLampCircleShadow = ts.sizeLampCircle + U.pixelsize * 3.0f;
 
        /* M_SQRT2 to be at least the same size of the old square */
-       ts.sizeVertex = UI_GetThemeValuef(TH_VERTEX_SIZE) * M_SQRT2 / 2.0f;
-       ts.sizeFaceDot = UI_GetThemeValuef(TH_FACEDOT_SIZE) * M_SQRT2;
+       ts.sizeVertex = ceil(UI_GetThemeValuef(TH_VERTEX_SIZE) * M_SQRT2 / 
2.0f);
+       ts.sizeFaceDot = ceil(UI_GetThemeValuef(TH_FACEDOT_SIZE) * M_SQRT2);
        ts.sizeEdge = 1.0f / 2.0f; /* TODO Theme */
        ts.sizeEdgeFix = 0.5f + 2.0f * (2.0f * (MAX2(ts.sizeVertex, 
ts.sizeEdge)) * M_SQRT1_2);

_______________________________________________
Bf-blender-cvs mailing list
Bf-blender-cvs@blender.org
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to