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