From 8e54c77b6e0d2d87cdbad1a81a75d39bab1648d6 Mon Sep 17 00:00:00 2001 From: wxr <464027401@qq.com> Date: 星期一, 16 十月 2023 10:08:47 +0800 Subject: [PATCH] 场景闪退修复 --- OnPro/HDL_ON/Entity/Function/Scene.cs | 5 +---- 1 files changed, 1 insertions(+), 4 deletions(-) diff --git a/OnPro/HDL_ON/Entity/Function/Scene.cs b/OnPro/HDL_ON/Entity/Function/Scene.cs index df2aa7f..8d6bff1 100644 --- a/OnPro/HDL_ON/Entity/Function/Scene.cs +++ b/OnPro/HDL_ON/Entity/Function/Scene.cs @@ -561,10 +561,7 @@ private Function ConvertFunctionObject() { var localFunction = FunctionList.List.GetDeviceFunctionList().Find((obj) => obj.sid == sid); - if(localFunction == null) - { - localFunction = FunctionList.List.groupControls.Find((obj) => obj.sid == sid); - } + return localFunction; } -- Gitblit v1.8.0