This patch allows measureit to behave correctly with line thickness option.
Need to be used together with D9518: Adding 3D_POLYLINE_UNIFORM_COLOR to PyGPU shader API.
Differential D9519
Measureit using uniform to send line width info Authored by YimingWu (NicksBest) on Nov 10 2020, 4:58 AM.
Details
This patch allows measureit to behave correctly with line thickness option. Need to be used together with D9518: Adding 3D_POLYLINE_UNIFORM_COLOR to PyGPU shader API.
Diff Detail Event TimelineComment Actions Some minor changes. I didn't actually test it yet will do that after the patch is updated.
Comment Actions use imm_set_line_width. (This was originally meant to be "look similar" to bgl.glLineWidth() but this way it indeed looks beter :D ) Comment Actions I tried applying this patch but ran into issues which have probably been introduced since this patch was written. Committed rBA41658df313e1: Fix T82562: Measureit line drawing doesn't work, closing. | ||||||||||