Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlijenstina <lijenstina@gmail.com>2018-03-04 09:46:35 +0300
committerlijenstina <lijenstina@gmail.com>2018-03-04 09:46:35 +0300
commitbcc369ff484b32cae14ef0da92c1120607d88011 (patch)
tree3254ecd4b8fd5e2138dbd03b299e6b54ab3531c1 /materials_utils
parent85b618370f825e12a1a6412cf5c4fec053ac9f15 (diff)
Materials Utils: Fix issue with mode check in the remove menu
Bump version to 1.0.5 Fix omission from the previous commit related to checking the the VIEW3D_MT_remove_material mode with no active object No other functional changes
Diffstat (limited to 'materials_utils')
-rw-r--r--materials_utils/__init__.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/materials_utils/__init__.py b/materials_utils/__init__.py
index 19be24d2..ea85a104 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, 4),
+ "version": (1, 0, 5),
"blender": (2, 77, 0),
"location": "Materials Properties Specials > Shift Q",
"description": "Materials Utils and Convertors",
@@ -1790,9 +1790,8 @@ class VIEW3D_MT_remove_material(Menu):
def draw(self, context):
layout = self.layout
layout.operator_context = 'INVOKE_REGION_WIN'
- obj = context.active_object
- if obj.mode in {'TEXTURE_PAINT'}:
+ if context.mode in {'PAINT_TEXTURE'}:
layout.label(
text="Removing materials can lead to loss of painting data",
icon="INFO"
@@ -1818,8 +1817,7 @@ class VIEW3D_MT_remove_material(Menu):
use_separator(self, context)
layout.operator(
"view3d.material_remove_all",
- text="Remove Material Slots "
- "(All Selected Objects)",
+ text="Remove Material Slots (All Selected Objects)",
icon='CANCEL'
)