Fixes TileMap editor copy bug.

This commit is contained in:
andybarcia 2021-03-19 12:09:28 +01:00
parent 3b380f4cdc
commit 558b08e6d9

View File

@ -966,12 +966,12 @@ void TileMapEditor::_update_copydata() {
tcd.flip_v = node->is_cell_y_flipped(j, i); tcd.flip_v = node->is_cell_y_flipped(j, i);
tcd.transpose = node->is_cell_transposed(j, i); tcd.transpose = node->is_cell_transposed(j, i);
tcd.autotile_coord = node->get_cell_autotile_coord(j, i); tcd.autotile_coord = node->get_cell_autotile_coord(j, i);
}
copydata.push_back(tcd); copydata.push_back(tcd);
} }
} }
} }
}
static inline Vector<Point2i> line(int x0, int x1, int y0, int y1) { static inline Vector<Point2i> line(int x0, int x1, int y0, int y1) {
Vector<Point2i> points; Vector<Point2i> points;