修复了 Part 在部分放置失败的情况直接回到原位的问题

This commit is contained in:
SepComet 2026-02-08 18:17:34 +08:00
parent 6b8982f0cd
commit 67e6b33677
2 changed files with 2 additions and 2 deletions

View File

@ -385,7 +385,7 @@ namespace CustomComponent
/// </summary> /// </summary>
private void RejectPlace(CombineDraggablePart part, string hint) private void RejectPlace(CombineDraggablePart part, string hint)
{ {
part.ReturnToSpawn(); part.ReturnToSpawnAnimated();
if (!string.IsNullOrEmpty(hint)) if (!string.IsNullOrEmpty(hint))
{ {

View File

@ -340,7 +340,7 @@ namespace UI
.SetUpdate(true); .SetUpdate(true);
} }
private void ReturnToSpawnAnimated() public void ReturnToSpawnAnimated()
{ {
if (_spawnParent == null) if (_spawnParent == null)
{ {