Unify editor scene edit history
This commit is contained in:
@@ -39,14 +39,14 @@ UIEditorHostCommandEvaluationResult SceneEditCommandRoute::EvaluateEditCommand(
|
||||
}
|
||||
|
||||
if (commandId == "edit.undo") {
|
||||
return m_sceneRuntime->CanUndoTransformEdit()
|
||||
? BuildEvaluationResult(true, "Undo the last scene transform edit.")
|
||||
: BuildEvaluationResult(false, "Scene transform history is empty.");
|
||||
return m_sceneRuntime->CanUndoSceneEdit()
|
||||
? BuildEvaluationResult(true, "Undo the last scene edit.")
|
||||
: BuildEvaluationResult(false, "Scene edit history is empty.");
|
||||
}
|
||||
|
||||
if (commandId == "edit.redo") {
|
||||
return m_sceneRuntime->CanRedoTransformEdit()
|
||||
? BuildEvaluationResult(true, "Redo the last scene transform edit.")
|
||||
return m_sceneRuntime->CanRedoSceneEdit()
|
||||
? BuildEvaluationResult(true, "Redo the last scene edit.")
|
||||
: BuildEvaluationResult(false, "Scene redo history is empty.");
|
||||
}
|
||||
|
||||
@@ -101,14 +101,14 @@ UIEditorHostCommandDispatchResult SceneEditCommandRoute::DispatchEditCommand(
|
||||
}
|
||||
|
||||
if (commandId == "edit.undo") {
|
||||
return m_sceneRuntime->UndoTransformEdit()
|
||||
? BuildDispatchResult(true, "Undid the last scene transform edit.")
|
||||
: BuildDispatchResult(false, "Scene transform history is empty.");
|
||||
return m_sceneRuntime->UndoSceneEdit()
|
||||
? BuildDispatchResult(true, "Undid the last scene edit.")
|
||||
: BuildDispatchResult(false, "Scene edit history is empty.");
|
||||
}
|
||||
|
||||
if (commandId == "edit.redo") {
|
||||
return m_sceneRuntime->RedoTransformEdit()
|
||||
? BuildDispatchResult(true, "Redid the last scene transform edit.")
|
||||
return m_sceneRuntime->RedoSceneEdit()
|
||||
? BuildDispatchResult(true, "Redid the last scene edit.")
|
||||
: BuildDispatchResult(false, "Scene redo history is empty.");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user