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:
authorNutti <nutti.metro@gmail.com>2019-01-20 16:45:34 +0300
committerNutti <nutti.metro@gmail.com>2019-01-20 16:45:34 +0300
commit48c4cad2c4211c52f71f5ab39b94538608ecd90e (patch)
tree1169390502374ab41650403dffd8e5529523619e /uv_magic_uv/ui/view3d_copy_paste_uv_editmode.py
parente6b7852efbad5e2419479be9553b1b873dd94c65 (diff)
Magic UV: Fix error and cleanup codes
Diffstat (limited to 'uv_magic_uv/ui/view3d_copy_paste_uv_editmode.py')
-rw-r--r--uv_magic_uv/ui/view3d_copy_paste_uv_editmode.py31
1 files changed, 16 insertions, 15 deletions
diff --git a/uv_magic_uv/ui/view3d_copy_paste_uv_editmode.py b/uv_magic_uv/ui/view3d_copy_paste_uv_editmode.py
index 0fc4df14..cb1a6bf4 100644
--- a/uv_magic_uv/ui/view3d_copy_paste_uv_editmode.py
+++ b/uv_magic_uv/ui/view3d_copy_paste_uv_editmode.py
@@ -25,9 +25,15 @@ __date__ = "17 Nov 2018"
import bpy
-from ..op import (
- copy_paste_uv,
- transfer_uv,
+from ..op.copy_paste_uv import (
+ MUV_MT_CopyPasteUV_CopyUV,
+ MUV_MT_CopyPasteUV_PasteUV,
+ MUV_MT_CopyPasteUV_SelSeqCopyUV,
+ MUV_MT_CopyPasteUV_SelSeqPasteUV,
+)
+from ..op.transfer_uv import (
+ MUV_OT_TransferUV_CopyUV,
+ MUV_OT_TransferUV_PasteUV,
)
from ..utils.bl_class_registry import BlClassRegistry
from ..utils import compatibility as compat
@@ -60,17 +66,13 @@ class MUV_PT_CopyPasteUVEditMode(bpy.types.Panel):
if sc.muv_copy_paste_uv_enabled:
row = box.row(align=True)
if sc.muv_copy_paste_uv_mode == 'DEFAULT':
- row.menu(copy_paste_uv.MUV_MT_CopyPasteUV_CopyUV.bl_idname,
+ row.menu(MUV_MT_CopyPasteUV_CopyUV.bl_idname, text="Copy")
+ row.menu(MUV_MT_CopyPasteUV_PasteUV.bl_idname, text="Paste")
+ elif sc.muv_copy_paste_uv_mode == 'SEL_SEQ':
+ row.menu(MUV_MT_CopyPasteUV_SelSeqCopyUV.bl_idname,
text="Copy")
- row.menu(copy_paste_uv.MUV_MT_CopyPasteUV_PasteUV.bl_idname,
+ row.menu(MUV_MT_CopyPasteUV_SelSeqPasteUV.bl_idname,
text="Paste")
- elif sc.muv_copy_paste_uv_mode == 'SEL_SEQ':
- row.menu(
- copy_paste_uv.MUV_MT_CopyPasteUV_SelSeqCopyUV.bl_idname,
- text="Copy")
- row.menu(
- copy_paste_uv.MUV_MT_CopyPasteUV_SelSeqPasteUV.bl_idname,
- text="Paste")
box.prop(sc, "muv_copy_paste_uv_mode", expand=True)
box.prop(sc, "muv_copy_paste_uv_copy_seams", text="Seams")
box.prop(sc, "muv_copy_paste_uv_strategy", text="Strategy")
@@ -79,9 +81,8 @@ class MUV_PT_CopyPasteUVEditMode(bpy.types.Panel):
box.prop(sc, "muv_transfer_uv_enabled", text="Transfer UV")
if sc.muv_transfer_uv_enabled:
row = box.row(align=True)
- row.operator(transfer_uv.MUV_OT_TransferUV_CopyUV.bl_idname,
- text="Copy")
- ops = row.operator(transfer_uv.MUV_OT_TransferUV_PasteUV.bl_idname,
+ row.operator(MUV_OT_TransferUV_CopyUV.bl_idname, text="Copy")
+ ops = row.operator(MUV_OT_TransferUV_PasteUV.bl_idname,
text="Paste")
ops.invert_normals = sc.muv_transfer_uv_invert_normals
ops.copy_seams = sc.muv_transfer_uv_copy_seams