Browse Source

tools-imgui: avoid sending empty messages

Daniele Bartolini 6 năm trước cách đây
mục cha
commit
2dadf2244d
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      tools-imgui/level_editor.cpp

+ 2 - 1
tools-imgui/level_editor.cpp

@@ -1600,7 +1600,8 @@ bool tool_process_events()
 
 
 	}
 	}
 
 
-	_editor->send_command(ss);
+	if (array::size(ss) > 0)
+		_editor->send_command(ss);
 
 
 	bool vsync = true;
 	bool vsync = true;
 	if (reset)
 	if (reset)