From 3f97e424b36ee403291c20e82b0cc65f6dadd7a6 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Mon, 13 Jan 2025 16:46:32 +0100 Subject: world: fix scale option not affecting translation --- world/src/mesh.rs | 1 + 1 file changed, 1 insertion(+) 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; -- cgit v1.2.3-70-g09d2