summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2017-11-09 09:48:14 +0100
committerGitHub <noreply@github.com>2017-11-09 09:48:14 +0100
commit7e0e415d4628cc7ba6b2efc52836a6a9e79cc6f0 (patch)
tree8fd66497d29945d8afb6be9c4227f669f0d35596
parentb87a7df18632df80cc4fe8009337d243191fd80e (diff)
parent0b7ae364ea91e130761d75ee93ad37455ede2703 (diff)
Merge pull request #12755 from Zylann/fix_tilemap_undo
Fix tilemap undo/redo
-rw-r--r--editor/plugins/tile_map_editor_plugin.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/editor/plugins/tile_map_editor_plugin.cpp b/editor/plugins/tile_map_editor_plugin.cpp
index 9235dafaa6..0ee0eed3a2 100644
--- a/editor/plugins/tile_map_editor_plugin.cpp
+++ b/editor/plugins/tile_map_editor_plugin.cpp
@@ -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);
}