[Bf-extensions-cvs] [835f4068] master: Materials Utils Specials: Don't open the Tweak on all materials

lijenstina noreply at git.blender.org
Sat Aug 26 10:49:17 CEST 2017


Commit: 835f4068ae628cb4c9c2f4d3480a9da794e2146d
Author: lijenstina
Date:   Sat Aug 26 10:48:24 2017 +0200
Branches: master
https://developer.blender.org/rBA835f4068ae628cb4c9c2f4d3480a9da794e2146d

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

===================================================================

M	materials_utils/__init__.py

===================================================================

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,
         )



More information about the Bf-extensions-cvs mailing list