From 7ad5abd14b050edbaa6f5ef51a31af70dee329eb Mon Sep 17 00:00:00 2001 From: lijenstina Date: Sat, 3 Sep 2016 02:43:59 +0200 Subject: Materials Utils: Update to Mix Nodes, report switch Changes mostly touching materials_cycles_converter Add color mix nodes tree between images and shader input Add a scene prop for switching off the report in the UI Remove the preferences conv_path entry it's not used Remove the Value to RGB node for now (adding it properly needs an refactor) Change the placement of the texture nodes (hidden if > 1) --- materials_utils/warning_messages_utils.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'materials_utils/warning_messages_utils.py') diff --git a/materials_utils/warning_messages_utils.py b/materials_utils/warning_messages_utils.py index 595e0e31..66c83714 100644 --- a/materials_utils/warning_messages_utils.py +++ b/materials_utils/warning_messages_utils.py @@ -129,16 +129,19 @@ def collect_report(collection="", is_start=False, is_final=False): # collection passes a string for appending to COLLECT_REPORT global # is_final swithes to the final report with the operator in __init__ global COLLECT_REPORT + scene = bpy.context.scene.mat_specials + use_report = scene.enable_report if is_start: # there was a crash somewhere before the is_final call COLLECT_REPORT = [] if collection and type(collection) is str: - COLLECT_REPORT.append(collection) + if use_report: + COLLECT_REPORT.append(collection) print(collection) - if is_final: + if is_final and use_report: # final operator pass uses * as delimiter for splitting into new lines messages = "*".join(COLLECT_REPORT) bpy.ops.mat_converter.reports('INVOKE_DEFAULT', message=messages) -- cgit v1.2.3