Skip to content
Permalink
Browse files

Fixed disappearing of tileset and terrain properties as well

Addendum to 8494cd6.
  • Loading branch information...
bjorn committed Mar 28, 2017
1 parent 8494cd6 commit bce8cbb3193e6da00f97dd5f96bc8f066eeb416b
Showing with 2 additions and 0 deletions.
  1. +1 −0 src/libtiled/terrain.h
  2. +1 −0 src/libtiled/tileset.cpp
@@ -178,6 +178,7 @@ inline void Terrain::setTransitionDistances(const QVector<int> &transitionDistan
inline Terrain *Terrain::clone(Tileset *tileset) const
{
Terrain *c = new Terrain(mId, tileset, mName, mImageTileId);
c->setProperties(properties());
c->mTransitionDistance = mTransitionDistance;
return c;
}
@@ -622,6 +622,7 @@ void Tileset::swap(Tileset &other)
SharedTileset Tileset::clone() const
{
SharedTileset c = create(mName, mTileWidth, mTileHeight, mTileSpacing, mMargin);
c->setProperties(properties());

// mFileName stays empty
c->mImageReference = mImageReference;

0 comments on commit bce8cbb

Please sign in to comment.
You can’t perform that action at this time.