Skip to content

Commit 34bbc52

Browse files
committed
Update TileSaver.pde
initialize the tile counting values for each run so the second image does not get mixed up, as the values aren't reset correctly after the first run.
1 parent fe9e5bf commit 34bbc52

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

02_M/M_3_4_01_TOOL/TileSaver.pde

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,10 @@ class TileSaver {
5757
tileFilename=_filename;
5858
tileNum=_num;
5959
tileNumSq=(tileNum*tileNum);
60+
61+
// Reset tile counters to start over correctly
62+
tileX = 0;
63+
tileY = 0;
6064

6165
width=p.width;
6266
height=p.height;

0 commit comments

Comments
 (0)