-
This commit is contained in:
@@ -176,7 +176,7 @@ export class DOStage {
|
||||
_notes.push(notes[i])
|
||||
}
|
||||
const dataUndo: DataUndo = { index, show, notes: _notes }
|
||||
console.log("add_undo >>>>>>>>>>>>>>>>>>>>>>>>>>>>", JSON.stringify(dataUndo))
|
||||
// console.log("add_undo >>>>>>>>>>>>>>>>>>>>>>>>>>>>", JSON.stringify(dataUndo))
|
||||
this.data.undos.push(dataUndo)
|
||||
StorageManager.getInstance().onStageChanged()
|
||||
}
|
||||
|
||||
@@ -339,7 +339,7 @@ export class Stage extends Laya.Script {
|
||||
onClickUndo(): void {
|
||||
const undo = this.data.pop_undo()
|
||||
if (undo) {
|
||||
console.log("onClickUndo>>>>", JSON.stringify(undo))
|
||||
// console.log("onClickUndo>>>>", JSON.stringify(undo))
|
||||
this.selectedBlock = this.blocks[undo.index]
|
||||
this.onApplyBlock(this.selectedBlock)
|
||||
if (undo.notes && undo.notes.length > 0) {
|
||||
|
||||
Reference in New Issue
Block a user