瀏覽代碼

Fix: printing empty string does nothing in editor output pannel

Fix: #38490
(cherry picked from commit 5640cad1e1df4634d204e8a16ddf7c4ba34b22d0)
Thakee Nathees 5 年之前
父節點
當前提交
7bc293b081
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      scene/debugger/script_debugger_remote.cpp

+ 1 - 1
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()) {