Page MenuHome

When 'PERSISTENT' bl_option for GizmoGroup is used gizmo selection/highlight works only when activating addon and stops after reopening blender
Open, Needs TriagePublic

Description

System Information
Operating system: win 10
Graphics card: GTX 1070

Blender Version
Broken:
blender-2.80.0-git.0f5b53ba4dc-windows64

Short description of error
Hey,
There are some problems with 'PERSISTENT' bl_option for GizmoGroup

When activating addon for the first time all works just fine. But after saving preferences and reopening blender gizmo still draws but it is impossible to use/select it.

Replicate
here is light gizmo template operator as an addon for test
https://www.dropbox.com/s/p78fp1zs6twhx7r/MyLightWidgetGroup.py?dl=0
or

Steps to replicate:

  1. add a script to the addons folder
  2. enable MyLightWidgetGroup addon
  3. save preferences
  4. reopen blender
  5. add light - widget no longer works

when using bpy.types.WindowManager.gizmo_group_type_add() instead it works just fine.

the problem with
bpy.types.WindowManager.gizmo_group_type_add()
is that it no longer works after
bpy.types.WindowManager.gizmo_group_type_remove()

Details

Type
Bug