diff options
Diffstat (limited to 'release/scripts')
-rw-r--r-- | release/scripts/templates_py/gizmo_operator.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/release/scripts/templates_py/gizmo_operator.py b/release/scripts/templates_py/gizmo_operator.py index 524dd1dd20e..96f4f4de940 100644 --- a/release/scripts/templates_py/gizmo_operator.py +++ b/release/scripts/templates_py/gizmo_operator.py @@ -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 |