diff options
author | lijenstina <lijenstina@gmail.com> | 2018-02-25 00:44:17 +0300 |
---|---|---|
committer | lijenstina <lijenstina@gmail.com> | 2018-02-25 00:44:17 +0300 |
commit | abc7a07914f3b7273ca7717d2691ac2b8dec2de4 (patch) | |
tree | c7378dbad49faff8fa82f58f8174404d98af5d1c /materials_utils/material_converter.py | |
parent | cc56b808ca8338fe5d2b3ff1aba65429025cacf5 (diff) |
Materials Utils: Update to version 1.0.4
Bump version to 1.0.4
Some style tweaks
Refactor some of the if - else loops
Correct some of the tooltips
Various UI tweaks
Improvements:
- Introduce a pop-up menu for assigning and selecting materials
- Add support for removing empty material slots for non mesh objects
- Activate the material slot more reliably after creation, applying
- Texture Renamer: add option for rename all objects in the data
- Warning Messages: better formatting of console prints
Diffstat (limited to 'materials_utils/material_converter.py')
-rw-r--r-- | materials_utils/material_converter.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/materials_utils/material_converter.py b/materials_utils/material_converter.py index dfde5c50..c682e612 100644 --- a/materials_utils/material_converter.py +++ b/materials_utils/material_converter.py @@ -4,11 +4,11 @@ import bpy from mathutils import Vector from bpy.types import Operator from .warning_messages_utils import ( - warning_messages, - c_is_cycles_addon_enabled, - c_data_has_materials, - collect_report, - ) + warning_messages, + c_is_cycles_addon_enabled, + c_data_has_materials, + collect_report, +) # ----------------------------------------------------------------------------- # Globals @@ -752,6 +752,7 @@ class material_convert_all(Operator): def execute(self, context): AutoNode(False, self) + return {'FINISHED'} @@ -766,13 +767,12 @@ class material_convert_selected(Operator): def poll(cls, context): return (bpy.data.filepath != "" and c_data_has_materials() and c_is_cycles_addon_enabled() and - bool(next((obj for obj in context.selected_objects if obj.type == 'MESH'), - None) - ) + bool(next((obj for obj in context.selected_objects if obj.type == 'MESH'), None)) ) def execute(self, context): AutoNode(True, self) + return {'FINISHED'} |