diff options
Diffstat (limited to 'uv_magic_uv/ui/uvedit_copy_paste_uv.py')
-rw-r--r-- | uv_magic_uv/ui/uvedit_copy_paste_uv.py | 26 |
1 files changed, 17 insertions, 9 deletions
diff --git a/uv_magic_uv/ui/uvedit_copy_paste_uv.py b/uv_magic_uv/ui/uvedit_copy_paste_uv.py index d87dbef3..e21a5abd 100644 --- a/uv_magic_uv/ui/uvedit_copy_paste_uv.py +++ b/uv_magic_uv/ui/uvedit_copy_paste_uv.py @@ -20,21 +20,27 @@ __author__ = "Nutti <nutti.metro@gmail.com>" __status__ = "production" -__version__ = "5.1" -__date__ = "24 Feb 2018" +__version__ = "5.2" +__date__ = "17 Nov 2018" import bpy from ..op import copy_paste_uv_uvedit +from ..utils.bl_class_registry import BlClassRegistry +__all__ = [ + 'MUV_PT_UVEdit_CopyPasteUV', +] -class IMAGE_PT_MUV_CPUV(bpy.types.Panel): + +@BlClassRegistry() +class MUV_PT_UVEdit_CopyPasteUV(bpy.types.Panel): """ Panel class: Copy/Paste UV on Property Panel on UV/ImageEditor """ bl_space_type = 'IMAGE_EDITOR' - bl_region_type = 'TOOLS' + bl_region_type = 'UI' bl_label = "Copy/Paste UV" bl_category = "Magic UV" bl_context = 'mesh_edit' @@ -42,13 +48,15 @@ class IMAGE_PT_MUV_CPUV(bpy.types.Panel): def draw_header(self, _): layout = self.layout - layout.label(text="", icon='IMAGE_COL') + layout.label(text="", icon='IMAGE') def draw(self, _): layout = self.layout row = layout.row(align=True) - row.operator(copy_paste_uv_uvedit.MUV_CPUVIECopyUV.bl_idname, - text="Copy") - row.operator(copy_paste_uv_uvedit.MUV_CPUVIEPasteUV.bl_idname, - text="Paste") + row.operator( + copy_paste_uv_uvedit.MUV_OT_CopyPasteUVUVEdit_CopyUV.bl_idname, + text="Copy") + row.operator( + copy_paste_uv_uvedit.MUV_OT_CopyPasteUVUVEdit_PasteUV.bl_idname, + text="Paste") |