Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharlie Jolly <mistajolly@gmail.com>2018-11-06 14:09:51 +0300
committerCharlie Jolly <mistajolly@gmail.com>2018-11-12 17:18:35 +0300
commitc199040438a07b0b8a5c6ab9663efd6dc112048f (patch)
tree6349ad06427dcf71b0f5682c76215391a0505788 /source/blender
parent36d25fc81bff6c2b0a8daadfe66c6bd77ae86baf (diff)
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
Diffstat (limited to 'source/blender')
-rw-r--r--source/blender/editors/interface/interface_draw.c2
1 files changed, 1 insertions, 1 deletions
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];