Commit: c199040438a07b0b8a5c6ab9663efd6dc112048f
Author: Charlie Jolly
Date:   Tue Nov 6 11:09:51 2018 +0000
Branches: blender2.8
https://developer.blender.org/rBc199040438a07b0b8a5c6ab9663efd6dc112048f

UI: Scale control points on curve map when zooming

Mentioned by Pablo on Blender Today : 
https://www.youtube.com/watch?v=67NIL5A-07c @ about 27:47

Differential Revision: https://developer.blender.org/D3902

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

M       source/blender/editors/interface/interface_draw.c

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

diff --git a/source/blender/editors/interface/interface_draw.c 
b/source/blender/editors/interface/interface_draw.c
index 48526d35510..d5ec60d1730 100644
--- a/source/blender/editors/interface/interface_draw.c
+++ b/source/blender/editors/interface/interface_draw.c
@@ -1840,7 +1840,7 @@ void ui_draw_but_CURVE(ARegion *ar, uiBut *but, 
uiWidgetColors *wcol, const rcti
        immBindBuiltinProgram(GPU_SHADER_2D_FLAT_COLOR);
 
        cmp = cuma->curve;
-       GPU_point_size(4.0f);
+       GPU_point_size(max(1.0f, min(UI_DPI_FAC / but->block->aspect * 4.0f, 
4.0f)));
        immBegin(GPU_PRIM_POINTS, cuma->totpoint);
        for (int a = 0; a < cuma->totpoint; a++) {
                float color[4];

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to