Skip to content

Commit

Permalink
Fixed disappearing of tile type on export/import
Browse files Browse the repository at this point in the history
When exporting or importing a tileset, or when enabling any export
options that affect the tileset, the tileset is cloned. In the process
of cloning however, the tile types were not getting copied over.

See also change 8494cd6. Maybe there is
a way to avoid making such errors so easily?

Closes #2023
  • Loading branch information
bjorn committed Oct 15, 2018
1 parent 2bdd70c commit 2ce4a08
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/libtiled/tile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,8 @@ Tile *Tile::clone(Tileset *tileset) const
c->setProperties(properties());

c->mImageSource = mImageSource;
c->mImageStatus = mImageStatus;
c->mType = mType;
c->mTerrain = mTerrain;
c->mProbability = mProbability;

Expand Down

0 comments on commit 2ce4a08

Please sign in to comment.