shapes
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user