From 0c5ce185fe3fbf07ec49fa5d6485e90f0d2d77e0 Mon Sep 17 00:00:00 2001 From: RodZill4 Date: Fri, 31 Jan 2020 07:50:54 +0100 Subject: [PATCH] Added a better error message when generation fails. increased message queue size (to avoid freeze when opening many .ptex files at the same time) --- addons/material_maker/engine/gen_shader.gd | 2 +- project.godot | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/addons/material_maker/engine/gen_shader.gd b/addons/material_maker/engine/gen_shader.gd index dc2ac4f..a80d467 100644 --- a/addons/material_maker/engine/gen_shader.gd +++ b/addons/material_maker/engine/gen_shader.gd @@ -126,7 +126,7 @@ func replace_input(string : String, context, input : String, type : String, src if src_code.has(type): src_code.string = src_code[type] else: - src_code.string = "*error*" + src_code.string = "*error missing "+type+"*\n"+JSON.print(src_code) # Add global definitions if src_code.has("globals"): for d in src_code.globals: diff --git a/project.godot b/project.godot index ba5f88f..6763583 100644 --- a/project.godot +++ b/project.godot @@ -221,6 +221,10 @@ toggle_fullscreen={ file_logging/log_path="" +[memory] + +limits/message_queue/max_size_kb=16384 + [rendering] environment/default_environment="res://default_env.tres"