diff options
author | lijenstina <lijenstina@gmail.com> | 2017-06-06 22:53:03 +0300 |
---|---|---|
committer | lijenstina <lijenstina@gmail.com> | 2017-06-06 22:53:03 +0300 |
commit | 800dc7e3306413effcd1b683f7eeca0d602a78cf (patch) | |
tree | f23443eee822a61fffa1f4948e43ab82d51b76bc /uv_magic_uv/muv_cpuv_selseq_ops.py | |
parent | 473d074b34b66d6f674bb2f06153533c9b636fd1 (diff) |
Magic UV: Replace deprecated imp call, mode fix
Bump version to 4.3.1
Replace the deprecated imp calls with importlib
Imports as tuples
Some minor cleanup
Fix crash with MUV_TexProjProject by checking for edit mode,
add a poll for active object of type Mesh
Fix crash with MUV_PreserveUVAspect not having an image
in the faces loop tex data in certain cases
Diffstat (limited to 'uv_magic_uv/muv_cpuv_selseq_ops.py')
-rw-r--r-- | uv_magic_uv/muv_cpuv_selseq_ops.py | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/uv_magic_uv/muv_cpuv_selseq_ops.py b/uv_magic_uv/muv_cpuv_selseq_ops.py index 37e9f8de..bbb9de5a 100644 --- a/uv_magic_uv/muv_cpuv_selseq_ops.py +++ b/uv_magic_uv/muv_cpuv_selseq_ops.py @@ -20,13 +20,17 @@ __author__ = "Nutti <nutti.metro@gmail.com>" __status__ = "production" -__version__ = "4.3" -__date__ = "1 Apr 2017" - +__version__ = "4.3.1" +__date__ = "6 June 2017" import bpy import bmesh -from bpy.props import StringProperty, BoolProperty, IntProperty, EnumProperty +from bpy.props import ( + StringProperty, + BoolProperty, + IntProperty, + EnumProperty, + ) from . import muv_common @@ -180,8 +184,8 @@ class MUV_CPUVSelSeqPasteUV(bpy.types.Operator): if self.strategy == 'N_N' and len(props.src_uvs) != len(dest_uvs): self.report( {'WARNING'}, - "Number of selected faces is different from copied faces " - + "(src:%d, dest:%d)" + "Number of selected faces is different from copied faces " + + "(src:%d, dest:%d)" % (len(props.src_uvs), len(dest_uvs))) return {'CANCELLED'} |