diff options
author | Kae <80987908+Novaenia@users.noreply.github.com> | 2023-06-25 01:21:27 +1000 |
---|---|---|
committer | Kae <80987908+Novaenia@users.noreply.github.com> | 2023-06-25 01:21:27 +1000 |
commit | cb76e4e4448446bd69905de19683087d84ae39cb (patch) | |
tree | 0aa0548dae863c727cd32fc2b0d562783c7edb4e /source/game/StarObject.cpp | |
parent | 179f220bb4f1cc3e9e53d760ece6497a6f2044a8 (diff) | |
parent | 008bd6d3df469f69eaf667bc3ae357a03894bddb (diff) |
Merge branch 'experiments/directives'
Diffstat (limited to 'source/game/StarObject.cpp')
-rw-r--r-- | source/game/StarObject.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source/game/StarObject.cpp b/source/game/StarObject.cpp index 0a35ee7..0441262 100644 --- a/source/game/StarObject.cpp +++ b/source/game/StarObject.cpp @@ -1204,8 +1204,9 @@ List<Drawable> Object::orientationDrawables(size_t orientationIndex) const { if (!m_orientationDrawablesCache || orientationIndex != m_orientationDrawablesCache->first) { m_orientationDrawablesCache = make_pair(orientationIndex, List<Drawable>()); for (auto const& layer : orientation->imageLayers) { - auto drawable = layer; - drawable.imagePart().image = drawable.imagePart().image.replaceTags(m_imageKeys, true, "default"); + Drawable drawable = layer; + auto& image = drawable.imagePart().image; + image = AssetPath::join(image).replaceTags(m_imageKeys, true, "default"); if (orientation->flipImages) drawable.scale(Vec2F(-1, 1), drawable.boundBox(false).center() - drawable.position); m_orientationDrawablesCache->second.append(move(drawable)); |