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
This commit is contained in:
parent
3da84d8b08
commit
1842cef210
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue