Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'magic_uv/ui/IMAGE_MT_uvs.py')
-rw-r--r--magic_uv/ui/IMAGE_MT_uvs.py17
1 files changed, 14 insertions, 3 deletions
diff --git a/magic_uv/ui/IMAGE_MT_uvs.py b/magic_uv/ui/IMAGE_MT_uvs.py
index adad2fe9..0f94409b 100644
--- a/magic_uv/ui/IMAGE_MT_uvs.py
+++ b/magic_uv/ui/IMAGE_MT_uvs.py
@@ -4,14 +4,16 @@
__author__ = "Nutti <nutti.metro@gmail.com>"
__status__ = "production"
-__version__ = "6.5"
-__date__ = "6 Mar 2021"
+__version__ = "6.6"
+__date__ = "22 Apr 2022"
import bpy
from ..op.copy_paste_uv_uvedit import (
MUV_OT_CopyPasteUVUVEdit_CopyUV,
MUV_OT_CopyPasteUVUVEdit_PasteUV,
+ MUV_OT_CopyPasteUVUVEdit_CopyUVIsland,
+ MUV_OT_CopyPasteUVUVEdit_PasteUVIsland,
)
from ..op.align_uv_cursor import MUV_OT_AlignUVCursor
from ..op.align_uv import (
@@ -42,13 +44,22 @@ class MUV_MT_CopyPasteUV_UVEdit(bpy.types.Menu):
bl_label = "Copy/Paste UV"
bl_description = "Copy and Paste UV coordinate among object"
- def draw(self, _):
+ def draw(self, context):
layout = self.layout
+ sc = context.scene
+ layout.label(text="Face")
layout.operator(MUV_OT_CopyPasteUVUVEdit_CopyUV.bl_idname, text="Copy")
layout.operator(MUV_OT_CopyPasteUVUVEdit_PasteUV.bl_idname,
text="Paste")
+ layout.label(text="Island")
+ layout.operator(MUV_OT_CopyPasteUVUVEdit_CopyUVIsland.bl_idname,
+ text="Copy")
+ ops = layout.operator(MUV_OT_CopyPasteUVUVEdit_PasteUVIsland.bl_idname,
+ text="Paste")
+ ops.unique_target = sc.muv_copy_paste_uv_uvedit_unique_target
+
@BlClassRegistry()
class MUV_MT_AlignUV(bpy.types.Menu):