From 069d61e487947a8be38f6a3db52695db94fd306e Mon Sep 17 00:00:00 2001 From: Kae <80987908+Novaenia@users.noreply.github.com> Date: Mon, 3 Jul 2023 09:10:09 +1000 Subject: Fix scaling a better way --- source/game/scripting/StarLuaAnimationComponent.hpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'source/game/scripting/StarLuaAnimationComponent.hpp') 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::LuaAnimationComponent() { if (renderLayerName) renderLayer = parseRenderLayer(*renderLayerName); + if (auto image = drawable.part.ptr()) + image->transformation.scale(0.125f); + m_drawables.append({move(drawable), renderLayer}); }); animationCallbacks.registerCallback("clearLightSources", [this]() { -- cgit v1.2.3