Highlighting and Selectability of gizmos using custom geometry

Hi,
Does anyone know how to make gizmos with custom geometry to properly highlight in the 3D view for Blender 2.8?

There is a python template called “gizmo_custom_geometry.py” which adds a gizmo with some custom geometry for the energy of lamps. When run, it appers properly along the Z axis of the lamp, and you can select it and move it. But the problem is that for some reason the gizmo is not becoming highlighted when the cursor is over the drawn custom geometry, instead it becomes highlighted when the cursor is over some kind of random area in the middle. This makes it hard to select. By adding the “SCALE” option to the GizmoGroup class, you can zoom into the geometry, making this fact even more evident.

This doesn’t happen with other built-in gizmos like “GIZMO_GT_arrow_3d” for any of the available draw types. The highlighting follows the 3D geometry properly in those cases, so I know it’s not impossible to make it work right.

I also noticed that there is some offset between the real geometry of the gizmo and the selectable area, which is very nice, and one of the main reasons why I want to use the default methods to create gizmos, instead of other hacky methods. If I’m not wrong I believe that this offset is also settable, but I don’t know how to specify that.

1 Like

Same here, is this getting addressed?