From bae1d0473ba4499eae5b5c275da9f7224e8fc1b3 Mon Sep 17 00:00:00 2001 From: Ding Yuntian <1491671119@qq.com> Date: Mon, 27 Jul 2026 01:04:22 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=8F=92=E5=AD=94=E9=97=AE=E9=A2=98?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Assets/Scripts/FixSystemNew/Cable/Plug.cs | 2 +- .../FixSystemNew/Screen System/FixPanel/CablePanel.cs | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Assets/Scripts/FixSystemNew/Cable/Plug.cs b/Assets/Scripts/FixSystemNew/Cable/Plug.cs index 73cf4ca01..fc1cd83ac 100644 --- a/Assets/Scripts/FixSystemNew/Cable/Plug.cs +++ b/Assets/Scripts/FixSystemNew/Cable/Plug.cs @@ -101,7 +101,7 @@ namespace AibisDream.FixSystem if (_isInserting) return; _isInserting = true; - cablePanel.ClearDragHighlight(); + cablePanel.ClearDragHighlight(targetSocket as BodyModule); ClearFeedbackOffset(); var targetPos = targetSocket.GetSocketPos().position; diff --git a/Assets/Scripts/FixSystemNew/Screen System/FixPanel/CablePanel.cs b/Assets/Scripts/FixSystemNew/Screen System/FixPanel/CablePanel.cs index 4c0f964aa..3750de779 100644 --- a/Assets/Scripts/FixSystemNew/Screen System/FixPanel/CablePanel.cs +++ b/Assets/Scripts/FixSystemNew/Screen System/FixPanel/CablePanel.cs @@ -308,10 +308,10 @@ namespace AibisDream.FixSystem physicCableRef.SetPointer(pointerWorldPos); } - /// 结束拖拽:关闭所有插孔盖。 - public void ClearDragHighlight() + /// 结束拖拽:关闭除指定保留模块外的插孔盖;不指定时全部关闭。 + public void ClearDragHighlight(BodyModule preservedModule = null) { - BodyModuleSystem?.CloseModuleSlots(null); + BodyModuleSystem?.CloseModuleSlots(preservedModule); } /// 松手且未插中插孔:解除钉住,线缆自动回收,插头挂回绳末端。