This commit is contained in:
SoulliesOfficial
2026-03-26 14:48:04 -04:00
parent 731726239a
commit 11423add8f
100 changed files with 196597 additions and 1049 deletions

View File

@@ -30,8 +30,6 @@ namespace Ichni.Editor.Commands
{
if (target == null) return;
ReflectionHelper.SetDeepValue(target, path, newValue);
// 修复:必须主动唤醒目标通知其数据已完成覆写,否则拖拽属性将无法立刻映射到真实世界物体
target.Refresh();
}
public void Undo()
@@ -42,8 +40,7 @@ namespace Ichni.Editor.Commands
ReflectionHelper.SetDeepValue(target, path, oldValue);
target.Refresh();
// 通知 UI 面板重载(保证数据被回滚后,界面的参数显示不再是之前打错的值)
RefreshInspectorIfMatched();
}
public void Redo()
@@ -53,7 +50,7 @@ namespace Ichni.Editor.Commands
ReflectionHelper.SetDeepValue(target, path, newValue);
target.Refresh();
RefreshInspectorIfMatched();
}
public bool TryMerge(ICommand other)