diff options
author | Kae <80987908+Novaenia@users.noreply.github.com> | 2023-07-03 08:51:42 +1000 |
---|---|---|
committer | Kae <80987908+Novaenia@users.noreply.github.com> | 2023-07-03 08:51:42 +1000 |
commit | 398a5655f42378176a1e596af6d399a180ffb733 (patch) | |
tree | 88b5d6a9c389a55f5f10a5243188cdf5de7c553a /source/game/StarDrawable.cpp | |
parent | d7ba1136883de9392bb929df5772dba7f8bf49df (diff) |
Add Drawable <-> Lua conversion to LuaGameConverters
Diffstat (limited to 'source/game/StarDrawable.cpp')
-rw-r--r-- | source/game/StarDrawable.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/game/StarDrawable.cpp b/source/game/StarDrawable.cpp index c7311ae..08c14be 100644 --- a/source/game/StarDrawable.cpp +++ b/source/game/StarDrawable.cpp @@ -95,7 +95,8 @@ Drawable Drawable::makeImage(AssetPath image, float pixelSize, bool centered, Ve transformation.translate(-imageSize / 2); } - transformation.scale(pixelSize); + if (pixelSize != 1.0f) + transformation.scale(pixelSize); drawable.part = ImagePart{move(image), move(transformation)}; drawable.position = position; |