From 85448a839d432aab4220e6b23e55a0270e007b6f Mon Sep 17 00:00:00 2001
From: Client_PangDeRong <593317293@qq.com>
Date: 星期四, 23 八月 2018 18:03:38 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.0.87:10010/r/snxxz_scripts

---
 System/Message/RichText.cs |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/System/Message/RichText.cs b/System/Message/RichText.cs
index ca7e328..a2f70bf 100644
--- a/System/Message/RichText.cs
+++ b/System/Message/RichText.cs
@@ -500,7 +500,7 @@
     {
         get
         {
-            if (font == null)
+            if (font == null && Application.isPlaying)
             {
                 font = FontUtility.preferred;
             }
@@ -513,7 +513,7 @@
     {
         get
         {
-            if (font == null)
+            if (font == null && Application.isPlaying)
             {
                 font = FontUtility.preferred;
             }
@@ -719,7 +719,7 @@
         fitterText = fitterText.Replace("\n", "");
         float width = 0;
         textBuilder.Length = 0;
-        if (null == font)
+        if (null == font && Application.isPlaying)
         {
             font = FontUtility.preferred;
         }

--
Gitblit v1.8.0