From 2ce4a08470ae44a0d4638bd18257c3151038532f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thorbj=C3=B8rn=20Lindeijer?= Date: Mon, 15 Oct 2018 22:38:34 +0200 Subject: [PATCH] Fixed disappearing of tile type on export/import 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 8494cd6d4a02f4799c81e473a82048b5bd6b8bbe. Maybe there is a way to avoid making such errors so easily? Closes #2023 --- src/libtiled/tile.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/libtiled/tile.cpp b/src/libtiled/tile.cpp index 8d694a9dee..f7ba90a9fb 100644 --- a/src/libtiled/tile.cpp +++ b/src/libtiled/tile.cpp @@ -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;