Skip to content

Commit

Permalink
Materials Utils Specials: Don't open the Tweak on all materials
Browse files Browse the repository at this point in the history
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
  • Loading branch information
lijenstina committed Aug 26, 2017
1 parent 31499a1 commit 835f406
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions materials_utils/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -954,7 +954,7 @@ def execute(self, context):
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:
Expand Down Expand Up @@ -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,
)
Expand Down

0 comments on commit 835f406

Please sign in to comment.