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:
authorBrecht Van Lommel <brecht@blender.org>2022-03-11 16:39:14 +0300
committerBrecht Van Lommel <brecht@blender.org>2022-03-11 20:27:58 +0300
commit1842cef210a9cfd916044e1e5d7b68994af7806f (patch)
tree9c6bc6182a79a6868d51a4449293e9be81a7705c
parent3da84d8b086bd2d09beb5bdb89ba6beddf1e1dd6 (diff)
Fix wrong line width when using Show Lines in Histogram scope
By not resetting the line width, other scopes were using the wrong line thickness. Contributed by RedMser. Differential Revision: https://developer.blender.org/D12030
-rw-r--r--source/blender/editors/interface/interface_draw.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/editors/interface/interface_draw.c b/source/blender/editors/interface/interface_draw.c
index 9a51aa5cb9d..cb59680c062 100644
--- a/source/blender/editors/interface/interface_draw.c
+++ b/source/blender/editors/interface/interface_draw.c
@@ -411,6 +411,8 @@ static void histogram_draw_one(float r,
immVertex2f(pos_attr, x2, y + (data[i] * h));
}
immEnd();
+
+ GPU_line_width(1.0f);
}
else {
/* under the curve */