mirror of
https://github.com/godotengine/godot.git
synced 2024-11-27 09:16:35 +08:00
Fix tilemap undo/redo
This commit is contained in:
parent
5fb359d8b1
commit
0b7ae364ea
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user