Update scripts to account for removal of the context override to bpy.ops
[blender-addons.git] / magic_uv / ui / VIEW3D_MT_object.py
blob68852edede97f1339aa15837a5528286c7f9e492
1 # SPDX-License-Identifier: GPL-2.0-or-later
3 __author__ = "Nutti <nutti.metro@gmail.com>"
4 __status__ = "production"
5 __version__ = "6.6"
6 __date__ = "22 Apr 2022"
8 import bpy
10 from ..op.copy_paste_uv_object import (
11 MUV_MT_CopyPasteUVObject_CopyUV,
12 MUV_MT_CopyPasteUVObject_PasteUV,
14 from ..utils.bl_class_registry import BlClassRegistry
17 @BlClassRegistry()
18 class MUV_MT_CopyPasteUV_Object(bpy.types.Menu):
19 """
20 Menu class: Master menu of Copy/Paste UV coordinate among object
21 """
23 bl_idname = "MUV_MT_CopyPasteUV_Object"
24 bl_label = "Copy/Paste UV"
25 bl_description = "Copy and Paste UV coordinate among object"
27 def draw(self, _):
28 layout = self.layout
30 layout.menu(MUV_MT_CopyPasteUVObject_CopyUV.bl_idname, text="Copy")
31 layout.menu(MUV_MT_CopyPasteUVObject_PasteUV.bl_idname, text="Paste")