Merge pull request #12755 from Zylann/fix_tilemap_undo

Fix tilemap undo/redo
This commit is contained in:
Rémi Verschelde 2017-11-09 09:48:14 +01:00 committed by GitHub
commit 7e0e415d46
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -973,7 +973,7 @@ bool TileMapEditor::forward_gui_input(const Ref<InputEvent> &p_event) {
Point2i pos = points[i];
if (!paint_undo.has(over_tile)) {
if (!paint_undo.has(pos)) {
paint_undo[pos] = _get_op_from_cell(pos);
}
@ -993,7 +993,7 @@ bool TileMapEditor::forward_gui_input(const Ref<InputEvent> &p_event) {
Point2i pos = points[i];
if (!paint_undo.has(over_tile)) {
if (!paint_undo.has(pos)) {
paint_undo[pos] = _get_op_from_cell(pos);
}