UI: Add an outline to the popover arrows.
Details
Diff Detail
- Repository
- rB Blender
Event Timeline
New implementation with anti-aliasing.
I'm not sure removing the opacity of the popover is desirable. Maybe a better option would be to modify the drawing to not draw on the arrow twice. like using the depth or stencil buffer.
If the rendering is happening in an offscreen buffer (i dont remember if thas the case for popover), another option would be to draw a rect without blending but with 0 opacity to do a partial clear of the area where the arrow is.
revert to a simpler version without anti-aliasing
note, there is currently an arrow bug:
https://developer.blender.org/T65351#889095
The aliasing does not seems to be a problem to me. I cannot see it since the triangle is not in motion.
We could avoid the clearing triangle by modifying the blend equation (GPU_blend_set_func_separate(GPU_SRC_ALPHA, GPU_ZERO, GPU_ONE, GPU_ZERO);) but I don't want to make the drawing more complex than it is.

