Skip to content

Commit

Permalink
🐛 Fix loading error while migrating a project without tile layers to …
Browse files Browse the repository at this point in the history
…v1.4.0
  • Loading branch information
CosmoMyzrailGorynych committed Aug 9, 2020
1 parent 92ccebb commit 93c0d6a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/js/migration/1.4.0.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ window.migrationProcess.push({
* Tile layers at rooms can now be extended and have an object `exts`.
*/
for (const room of project.rooms) {
if (!room.tiles) {
room.tiles = [];
continue;
}
for (const layer of room.tiles) {
layer.extends = layer.extends || {};
delete layer.exts; // Leftovers from development of v1.3.2
Expand Down

0 comments on commit 93c0d6a

Please sign in to comment.