commit 8d24ce4f75db833b07d00c510237847898e9fbf8
parent d0f5c9de800774d83742b984e064e5802525c387
Author: Vincent Forest <vincent.forest@meso-star.com>
Date: Wed, 19 Nov 2025 09:28:24 +0100
Fix the application of the transformations
The translation was not applied correctly. It was read from a memory
space outside the transformation matrix.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/mtool.c b/src/mtool.c
@@ -148,7 +148,7 @@ transform_mesh(struct mtool* mtool)
double vec[3] = {0,0,0}; \
d3_set_f3(vec, Vertex); \
d33_muld3(vec, mtool->args.transform, vec); \
- d3_add(vec, mtool->args.transform+12, vec); \
+ d3_add(vec, mtool->args.transform+9, vec); \
f3_set_d3(Vertex, vec); \
} (void) 0
TRANSFORM(facet.vertices[0]);