The patch fixes the following bugs listed in T52166: MeasureIt: 2 bugs in Mesh Debug option:
- Added checks in draw_segments(), draw_text(), and draw_arrow() to make sure they do not attempt to subscript a NoneType
- Made so the "Location" button in "Mesh Debug" panel still works when "Vertices" option is disabled
Additional changes:
- Added conditionals to not show "Thickness" option in "Mesh Debug" panel unless "Normals" option is checked (Thickness only affects arrows drawn with normal option)
- Added conditionals to not hide "Arrow Size" option in Properties panel when arrow options weren't enabled
- Reorganized Mesh Debug panel layout to align colours with displayed values they are connected with
- Added an option to change between global and local coordinates for vertices
- Added an option to display edge index values (requested by meta-androcto)
- Added an option to display object scene index values and object coordinates