changeset 71:281bf29af098

TilePicker: also clear the flips when adding a tile Otherwise it's a bit weird when laying down a new tile and see that it's flipped.
author Jordi Gutiérrez Hermoso <jordigh@octave.org>
date Mon, 09 Sep 2019 18:02:54 -0400
parents f0ee922fe0de
children 74ebf2f4e801
files tilerswift
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/tilerswift
+++ b/tilerswift
@@ -298,6 +298,7 @@
 
         if event.button() == QtCore.Qt.LeftButton:
             self.tiles[i, j] = self.rom_canvas.picked_tile
+            self.flips[i, j] = (1, 1)
         elif event.button() == QtCore.Qt.RightButton:
             self.tiles[i, j] = None
         elif event.button() == QtCore.Qt.MidButton: