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

summaryrefslogtreecommitdiff
path: root/source/game/scripting/StarLuaAnimationComponent.hpp
diff options
context:
space:
mode:
authorKae <80987908+Novaenia@users.noreply.github.com>2023-07-03 09:10:09 +1000
committerKae <80987908+Novaenia@users.noreply.github.com>2023-07-03 09:10:09 +1000
commit069d61e487947a8be38f6a3db52695db94fd306e (patch)
tree4408bd7f3aa116d87c6dfd3e8394a3d7996f6b6a /source/game/scripting/StarLuaAnimationComponent.hpp
parent7999442f01140eec6cba813bb76fc3b5c9e5aa90 (diff)
Fix scaling a better way
Diffstat (limited to 'source/game/scripting/StarLuaAnimationComponent.hpp')
-rw-r--r--source/game/scripting/StarLuaAnimationComponent.hpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/game/scripting/StarLuaAnimationComponent.hpp b/source/game/scripting/StarLuaAnimationComponent.hpp
index 1ad99a4..0cbd280 100644
--- a/source/game/scripting/StarLuaAnimationComponent.hpp
+++ b/source/game/scripting/StarLuaAnimationComponent.hpp
@@ -66,6 +66,9 @@ LuaAnimationComponent<Base>::LuaAnimationComponent() {
if (renderLayerName)
renderLayer = parseRenderLayer(*renderLayerName);
+ if (auto image = drawable.part.ptr<Drawable::ImagePart>())
+ image->transformation.scale(0.125f);
+
m_drawables.append({move(drawable), renderLayer});
});
animationCallbacks.registerCallback("clearLightSources", [this]() {