changeset 97:c575bdd3d087

Tile: set new palette by copy Otherwise, we may end up modifying another tile's palette.
author Jordi Gutiérrez Hermoso <jordigh@octave.org>
date Thu, 12 Sep 2019 08:42:37 -0400
parents a7e744200920
children 822e2fb5197c
files tilerswift
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/tilerswift
+++ b/tilerswift
@@ -53,7 +53,7 @@
         ) + "\n" + "-"*10
 
     def set_palette(self, new_palette):
-        self.palette = new_palette
+        self.palette = new_palette.copy()
         self.update_pixmap()
 
     def update_pixmap(self):