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 'uv_magic_uv/op/transfer_uv.py')
-rw-r--r--uv_magic_uv/op/transfer_uv.py18
1 files changed, 9 insertions, 9 deletions
diff --git a/uv_magic_uv/op/transfer_uv.py b/uv_magic_uv/op/transfer_uv.py
index 079308ea..baad4dba 100644
--- a/uv_magic_uv/op/transfer_uv.py
+++ b/uv_magic_uv/op/transfer_uv.py
@@ -333,17 +333,17 @@ class _Properties:
scene.muv_props.transfer_uv = Props()
- scene.muv_transfer_uv_enabled: BoolProperty(
+ scene.muv_transfer_uv_enabled = BoolProperty(
name="Transfer UV Enabled",
description="Transfer UV is enabled",
default=False
)
- scene.muv_transfer_uv_invert_normals: BoolProperty(
+ scene.muv_transfer_uv_invert_normals = BoolProperty(
name="Invert Normals",
description="Invert Normals",
default=False
)
- scene.muv_transfer_uv_copy_seams: BoolProperty(
+ scene.muv_transfer_uv_copy_seams = BoolProperty(
name="Copy Seams",
description="Copy Seams",
default=True
@@ -363,7 +363,7 @@ class MUV_OT_TransferUV_CopyUV(bpy.types.Operator):
Topological based copy
"""
- bl_idname = "uv.muv_transfer_uv_operator_copy_uv"
+ bl_idname = "uv.muv_ot_transfer_uv_copy_uv"
bl_label = "Transfer UV Copy UV"
bl_description = "Transfer UV Copy UV (Topological based copy)"
bl_options = {'REGISTER', 'UNDO'}
@@ -377,7 +377,7 @@ class MUV_OT_TransferUV_CopyUV(bpy.types.Operator):
def execute(self, context):
props = context.scene.muv_props.transfer_uv
- active_obj = compat.get_active_object(context)
+ active_obj = context.active_object
bm = bmesh.from_edit_mesh(active_obj.data)
if compat.check_version(2, 73, 0) >= 0:
bm.faces.ensure_lookup_table()
@@ -404,17 +404,17 @@ class MUV_OT_TransferUV_PasteUV(bpy.types.Operator):
Topological based paste
"""
- bl_idname = "uv.muv_transfer_uv_operator_paste_uv"
+ bl_idname = "uv.muv_ot_transfer_uv_paste_uv"
bl_label = "Transfer UV Paste UV"
bl_description = "Transfer UV Paste UV (Topological based paste)"
bl_options = {'REGISTER', 'UNDO'}
- invert_normals: BoolProperty(
+ invert_normals = BoolProperty(
name="Invert Normals",
description="Invert Normals",
default=False
)
- copy_seams: BoolProperty(
+ copy_seams = BoolProperty(
name="Copy Seams",
description="Copy Seams",
default=True
@@ -433,7 +433,7 @@ class MUV_OT_TransferUV_PasteUV(bpy.types.Operator):
def execute(self, context):
props = context.scene.muv_props.transfer_uv
- active_obj = compat.get_active_object(context)
+ active_obj = context.active_object
bm = bmesh.from_edit_mesh(active_obj.data)
if compat.check_version(2, 73, 0) >= 0:
bm.faces.ensure_lookup_table()