Skip to content

Commit 983d14c

Browse files
Fix deleting content not working with undo
1 parent 55c5688 commit 983d14c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/UI/Canvas/Selection.gd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -538,7 +538,7 @@ func commit_undo(action : String, _undo_data : Dictionary) -> void:
538538
if not image is Image:
539539
continue
540540
project.undo_redo.add_do_property(image, "data", redo_data[image])
541-
for image in undo_data:
541+
for image in _undo_data:
542542
if not image is Image:
543543
continue
544544
project.undo_redo.add_undo_property(image, "data", _undo_data[image])
@@ -655,7 +655,7 @@ func delete() -> void:
655655
commit_undo("Draw", undo_data)
656656
return
657657

658-
var _undo_data = _get_undo_data(true)
658+
var _undo_data := _get_undo_data(true)
659659
var image : Image = project.frames[project.current_frame].cels[project.current_layer].image
660660
for x in big_bounding_rectangle.size.x:
661661
for y in big_bounding_rectangle.size.y:

0 commit comments

Comments
 (0)