diff options
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'} |