diff options
author | lijenstina <lijenstina@gmail.com> | 2017-08-26 11:48:24 +0300 |
---|---|---|
committer | lijenstina <lijenstina@gmail.com> | 2017-08-26 11:48:24 +0300 |
commit | 835f4068ae628cb4c9c2f4d3480a9da794e2146d (patch) | |
tree | 2c3cf42ca7e60e0e9c430031fe960df9eaa7626d | |
parent | 31499a1ae035fa409d63602d1ffe5f2bf0f47f5c (diff) |
Materials Utils Specials: Don't open the Tweak on all materials
Bumped version to 1.0.3
Only open the Preview Active material if a new material is created
and not also during assignment if the Use Tweak option is active
No other Functional changes
-rw-r--r-- | materials_utils/__init__.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/materials_utils/__init__.py b/materials_utils/__init__.py index c001a882..1cfec059 100644 --- a/materials_utils/__init__.py +++ b/materials_utils/__init__.py @@ -26,7 +26,7 @@ bl_info = { "name": "Materials Utils Specials", "author": "Community", - "version": (1, 0, 2), + "version": (1, 0, 3), "blender": (2, 77, 0), "location": "Materials Properties Specials > Shift Q", "description": "Materials Utils and Convertors", @@ -954,7 +954,7 @@ class VIEW3D_OT_assign_material(Operator): mat_to_texface() self.is_not_undo = False - if tweak: + if tweak and not self.is_existing: try: bpy.ops.view3d.show_mat_preview('INVOKE_DEFAULT') except: @@ -1971,7 +1971,7 @@ class material_specials_scene_props(PropertyGroup): maxlen=128, ) use_tweak = BoolProperty( - name="Tweak settings", + name="Tweak Settings", description="Open Preview Active Material after new Material creation", default=False, ) |