Fix T58474: Gizmo Operator template fails on rerun

This commit is contained in:
Campbell Barton
2018-12-04 10:15:02 +11:00
parent 2c19c9b2f6
commit c631782542
2 changed files with 10 additions and 10 deletions

View File

@@ -68,7 +68,7 @@ class SelectSideOfPlane(Operator):
if context.space_data.type == 'VIEW_3D':
wm = context.window_manager
wm.gizmo_group_type_add(SelectSideOfPlaneGizmoGroup.bl_idname)
wm.gizmo_group_type_ensure(SelectSideOfPlaneGizmoGroup.bl_idname)
return {'FINISHED'}
@@ -106,7 +106,7 @@ class SelectSideOfPlaneGizmoGroup(GizmoGroup):
op = cls.my_target_operator(context)
if op is None:
wm = context.window_manager
wm.gizmo_group_type_remove(SelectSideOfPlaneGizmoGroup.bl_idname)
wm.gizmo_group_type_unlink_delayed(SelectSideOfPlaneGizmoGroup.bl_idname)
return False
return True