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_props.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_props.py')
-rw-r--r-- | uv_magic_uv/muv_props.py | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/uv_magic_uv/muv_props.py b/uv_magic_uv/muv_props.py index 10e14614..3fdbdf00 100644 --- a/uv_magic_uv/muv_props.py +++ b/uv_magic_uv/muv_props.py @@ -20,12 +20,15 @@ __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 -from bpy.props import FloatProperty, EnumProperty, BoolProperty +from bpy.props import ( + FloatProperty, + EnumProperty, + BoolProperty, + ) DEBUG = False @@ -109,13 +112,13 @@ def init_props(scene): default=False) scene.muv_texproj_tex_magnitude = FloatProperty( name="Magnitude", - description="Texture Magnitude.", + description="Texture Magnitude", default=0.5, min=0.0, max=100.0) scene.muv_texproj_tex_image = EnumProperty( name="Image", - description="Texture Image.", + description="Texture Image", items=get_loaded_texture_name) scene.muv_texproj_tex_transparency = FloatProperty( name="Transparency", @@ -125,11 +128,11 @@ def init_props(scene): max=1.0) scene.muv_texproj_adjust_window = BoolProperty( name="Adjust Window", - description="Size of renderered texture is fitted to window.", + description="Size of renderered texture is fitted to window", default=True) scene.muv_texproj_apply_tex_aspect = BoolProperty( name="Texture Aspect Ratio", - description="Apply Texture Aspect ratio to displayed texture.", + description="Apply Texture Aspect ratio to displayed texture", default=True) |