Skip to content

Commit

Permalink
Fixed updating of tileset class on reload
Browse files Browse the repository at this point in the history
Forgot to amend Tileset::swap when adding Object::className.
  • Loading branch information
bjorn committed Jan 22, 2024
1 parent 85c49c0 commit b172c31
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/libtiled/tileset.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -593,6 +593,10 @@ SharedTileset Tileset::originalTileset()

void Tileset::swap(Tileset &other)
{
const QString className = this->className();
setClassName(other.className());
other.setClassName(className);

const Properties p = properties();
setProperties(other.properties());
other.setProperties(p);
Expand Down

0 comments on commit b172c31

Please sign in to comment.