summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2025-01-13 16:46:32 +0100
committermetamuffin <metamuffin@disroot.org>2025-01-13 16:46:32 +0100
commit3f97e424b36ee403291c20e82b0cc65f6dadd7a6 (patch)
tree40c70f884fa32019f5a39a0b46629e4034a5b77c
parent83077c23fe5f067b782c2ac25f2e9165861517d4 (diff)
downloadweareserver-3f97e424b36ee403291c20e82b0cc65f6dadd7a6.tar
weareserver-3f97e424b36ee403291c20e82b0cc65f6dadd7a6.tar.bz2
weareserver-3f97e424b36ee403291c20e82b0cc65f6dadd7a6.tar.zst
world: fix scale option not affecting translation
-rw-r--r--world/src/mesh.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/world/src/mesh.rs b/world/src/mesh.rs
index 16c2ce7..de4617f 100644
--- a/world/src/mesh.rs
+++ b/world/src/mesh.rs
@@ -357,6 +357,7 @@ pub fn node_transform_to_affine(node: &Node, args: &Args) -> Affine3A {
[mat[3][0], mat[3][1], mat[3][2]],
]);
aff.matrix3 *= args.scale.unwrap_or(1.);
+ aff.translation *= args.scale.unwrap_or(1.);
if args.z_up {
let r = Mat3A::from_rotation_x(PI / 2.);
aff.matrix3 *= r;