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); } /// 松手且未插中插孔:解除钉住,线缆自动回收,插头挂回绳末端。