From 4d6c9858844d1545a9b253c1b31842fa89695c1d Mon Sep 17 00:00:00 2001
From: JLChen <551775569@qq.com>
Date: 星期日, 06 六月 2021 13:59:01 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/wxr4' into WJC

---
 HDL_ON/Entity/Function/Light.cs |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/HDL_ON/Entity/Function/Light.cs b/HDL_ON/Entity/Function/Light.cs
index 63d3f63..65d6f5a 100644
--- a/HDL_ON/Entity/Function/Light.cs
+++ b/HDL_ON/Entity/Function/Light.cs
@@ -15,6 +15,10 @@
         {
             var color = function.GetAttrState(FunctionAttributeKey.RGB).Split(",");
 
+            if(color.Length!= 3)
+            {
+                color = new string[] {"100", "100", "100" };
+            }
             int redColor = 0;
             int greenColor = 0;
             int blueColor = 0;

--
Gitblit v1.8.0