fix: 插孔问题修复

This commit is contained in:
2026-07-27 01:04:22 +08:00
parent 4b7887cd17
commit bae1d0473b
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -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;
@@ -308,10 +308,10 @@ namespace AibisDream.FixSystem
physicCableRef.SetPointer(pointerWorldPos);
}
/// <summary>结束拖拽:关闭所有插孔盖。</summary>
public void ClearDragHighlight()
/// <summary>结束拖拽:关闭除指定保留模块外的插孔盖;不指定时全部关闭。</summary>
public void ClearDragHighlight(BodyModule preservedModule = null)
{
BodyModuleSystem?.CloseModuleSlots(null);
BodyModuleSystem?.CloseModuleSlots(preservedModule);
}
/// <summary>松手且未插中插孔:解除钉住,线缆自动回收,插头挂回绳末端。</summary>