diff options
Diffstat (limited to 'uv_magic_uv/ui/view3d_copy_paste_uv_objectmode.py')
-rw-r--r-- | uv_magic_uv/ui/view3d_copy_paste_uv_objectmode.py | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/uv_magic_uv/ui/view3d_copy_paste_uv_objectmode.py b/uv_magic_uv/ui/view3d_copy_paste_uv_objectmode.py index a9203d87..6dd0d3b4 100644 --- a/uv_magic_uv/ui/view3d_copy_paste_uv_objectmode.py +++ b/uv_magic_uv/ui/view3d_copy_paste_uv_objectmode.py @@ -26,20 +26,21 @@ __date__ = "17 Nov 2018" import bpy from ..op import copy_paste_uv_object - +from ..utils.bl_class_registry import BlClassRegistry __all__ = [ - 'PanelCopyPasteUVObjectMode', + 'MUV_PT_View3D_Object_CopyPasteUV', ] -class PanelCopyPasteUVObjectMode(bpy.types.Panel): +@BlClassRegistry() +class MUV_PT_View3D_Object_CopyPasteUV(bpy.types.Panel): """ Panel class: Copy/Paste UV on Property Panel on View3D """ bl_space_type = 'VIEW_3D' - bl_region_type = 'TOOLS' + bl_region_type = 'UI' bl_label = "Copy/Paste UV" bl_category = "Magic UV" bl_context = 'objectmode' @@ -47,16 +48,18 @@ class PanelCopyPasteUVObjectMode(bpy.types.Panel): def draw_header(self, _): layout = self.layout - layout.label(text="", icon='IMAGE_COL') + layout.label(text="", icon='IMAGE') def draw(self, context): sc = context.scene layout = self.layout row = layout.row(align=True) - row.menu(copy_paste_uv_object.MenuCopyUV.bl_idname, - text="Copy") - row.menu(copy_paste_uv_object.MenuPasteUV.bl_idname, - text="Paste") + row.menu( + copy_paste_uv_object.MUV_MT_CopyPasteUVObject_CopyUV.bl_idname, + text="Copy") + row.menu( + copy_paste_uv_object.MUV_MT_CopyPasteUVObject_PasteUV.bl_idname, + text="Paste") layout.prop(sc, "muv_copy_paste_uv_object_copy_seams", text="Seams") |