Page MenuHome

Measureit using uniform to send line width info
ClosedPublic

Authored by YimingWu (NicksBest) on Nov 10 2020, 4:58 AM.

Details

Summary

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 Timeline

Jeroen Bakker (jbakker) requested changes to this revision.Nov 11 2020, 3:37 PM

Some minor changes. I didn't actually test it yet will do that after the patch is updated.

measureit/measureit_geometry.py
46

Code style. Python functions are all lowercase with underscores between the words.
Perhaps use get/set_imm_line_width so it is easier to understand what it is doing and keep the style the same.

This revision now requires changes to proceed.Nov 11 2020, 3:37 PM

use imm_set_line_width.

(This was originally meant to be "look similar" to bgl.glLineWidth() but this way it indeed looks beter :D )

This revision is now accepted and ready to land.Nov 16 2020, 1:14 PM

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.