When 'PERSISTENT' bl_option for GizmoGroup is used gizmo selection/highlight works only when activating addon and stops after reopening blender #58437

Closed
opened 2018-12-01 15:57:28 +01:00 by Adrian Rutkowski · 10 comments

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
MyLightWidgetGroup.py

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()

**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 [MyLightWidgetGroup.py](https://archive.blender.org/developer/F5779708/MyLightWidgetGroup.py) 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()

Added subscriber: @niewinny

Added subscriber: @niewinny

Added subscriber: @ZedDB

Added subscriber: @ZedDB
Campbell Barton was assigned by Sebastian Parborg 2019-01-23 11:51:23 +01:00

I can confirm that the widget shows up but you can no longer manipulate it if you have the addon enabled on startup.

I can confirm that the widget shows up but you can no longer manipulate it if you have the addon enabled on startup.
Campbell Barton was unassigned by Dalai Felinto 2019-12-23 16:35:46 +01:00

Added subscriber: @ideasman42

Added subscriber: @ideasman42

Added subscriber: @iss

Added subscriber: @iss

Changed status from 'Confirmed' to: 'Needs User Info'

Changed status from 'Confirmed' to: 'Needs User Info'

I have re-triaged this report and can not reproduce it.
Can you please check if this is still an issue in latest build?
https://builder.blender.org/download/

I have re-triaged this report and can not reproduce it. Can you please check if this is still an issue in latest build? https://builder.blender.org/download/

It is working good in the current build
hash: de09db6b4d13

It is working good in the current build hash: de09db6b4d13

Changed status from 'Needs User Info' to: 'Resolved'

Changed status from 'Needs User Info' to: 'Resolved'
Richard Antalik self-assigned this 2020-02-11 17:57:40 +01:00

Thanks for update

Thanks for update
Sign in to join this conversation.
No Milestone
No project
No Assignees
4 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender-addons#58437
No description provided.