Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
path: root/source/game/items/StarTools.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/game/items/StarTools.cpp')
-rw-r--r--source/game/items/StarTools.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/source/game/items/StarTools.cpp b/source/game/items/StarTools.cpp
index cde44b8..6c84c12 100644
--- a/source/game/items/StarTools.cpp
+++ b/source/game/items/StarTools.cpp
@@ -620,8 +620,10 @@ ItemPtr PaintingBeamTool::clone() const {
List<Drawable> PaintingBeamTool::drawables() const {
auto result = BeamItem::drawables();
for (auto& entry : result) {
- if (entry.isImage())
- entry.imagePart().image.directives += m_colorKeys[m_colorIndex];
+ if (entry.isImage()) {
+ auto& image = entry.imagePart().image;
+ image.subPath = image.subPath.value("0") + m_colorKeys[m_colorIndex];
+ }
}
return result;
}