From 7bc293b0817e46e52989de1c8dacc5066d42035b Mon Sep 17 00:00:00 2001 From: Thakee Nathees Date: Thu, 7 May 2020 05:56:29 +0530 Subject: [PATCH] Fix: printing empty string does nothing in editor output pannel Fix: #38490 (cherry picked from commit 5640cad1e1df4634d204e8a16ddf7c4ba34b22d0) --- scene/debugger/script_debugger_remote.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scene/debugger/script_debugger_remote.cpp b/scene/debugger/script_debugger_remote.cpp index 434410dc806..75ac08a7d21 100644 --- a/scene/debugger/script_debugger_remote.cpp +++ b/scene/debugger/script_debugger_remote.cpp @@ -1150,7 +1150,7 @@ void ScriptDebuggerRemote::_print_handler(void *p_this, const String &p_string, String s = p_string; int allowed_chars = MIN(MAX(sdr->max_cps - sdr->char_count, 0), s.length()); - if (allowed_chars == 0) + if (allowed_chars == 0 && s.length() > 0) return; if (allowed_chars < s.length()) {