From 21e399648f6f3ac6d99c30e82e553a56973a4bbf Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Sat, 4 Feb 2023 01:57:03 +0100 Subject: [PATCH] 3d-models:: yet another fix to make_revolution_cut --- 3d-models.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/3d-models.cpp b/3d-models.cpp index ce263457..1fe3d12a 100644 --- a/3d-models.cpp +++ b/3d-models.cpp @@ -579,7 +579,11 @@ void geometry_information::make_revolution_cut(hpcshape &sh, int each, ld push, for(int i=0; inormalize_flat(gbody[lastid[i]] * (i - lastid[i]) + gbody[nextid[i]] * (nextid[i] - i)); + if(!stillin[i]) { + auto gl = cgi.emb->actual_to_logical(gbody[lastid[i]]); + auto gn = cgi.emb->actual_to_logical(gbody[nextid[i]]); + gbody[i] = cgi.emb->logical_to_actual((gl * (i - lastid[i]) + gn * (nextid[i] - i)) / (nextid[i] - lastid[i])); + } } bshape(sh, PPR::MONSTER_BODY);