aboutsummaryrefslogtreecommitdiff
path: root/editor/plugins/tile_map_editor_plugin.cpp
diff options
context:
space:
mode:
authorMarc Gilleron2017-11-08 22:26:19 +0100
committerMarc Gilleron2017-11-08 22:26:19 +0100
commit0b7ae364ea91e130761d75ee93ad37455ede2703 (patch)
tree3d4ddf6ad00d45fe6dbb9c5bc97faa959c60107a /editor/plugins/tile_map_editor_plugin.cpp
parent5fb359d8b1d58061af2d64b304dc0e62c9228efc (diff)
downloadgodot-0b7ae364ea91e130761d75ee93ad37455ede2703.tar.gz
godot-0b7ae364ea91e130761d75ee93ad37455ede2703.tar.zst
godot-0b7ae364ea91e130761d75ee93ad37455ede2703.zip
Diffstat (limited to 'editor/plugins/tile_map_editor_plugin.cpp')
-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 9235dafaa..0ee0eed3a 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);
}