From 6e5067828a7261fe8babc862bd588e86429ddb81 Mon Sep 17 00:00:00 2001 From: Garux Date: Fri, 31 Oct 2025 15:10:49 +0500 Subject: [PATCH] fix PopulateWithBSPModel() oddly using modelscale and angles --- tools/quake3/q3map2/light_trace.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/quake3/q3map2/light_trace.cpp b/tools/quake3/q3map2/light_trace.cpp index 56e5addf..08c17abb 100644 --- a/tools/quake3/q3map2/light_trace.cpp +++ b/tools/quake3/q3map2/light_trace.cpp @@ -1110,7 +1110,8 @@ static void PopulateTraceNodes(){ if ( m <= 0 || m >= bspModels.size() ) { continue; } - PopulateWithBSPModel( bspModels[ m ], transform ); + // using only origin for bmodels transform; only exception in vq3 is func_pendulum transform determined by angle/angles + PopulateWithBSPModel( bspModels[ m ], matrix4_translation_for_vec3( origin ) ); break; /* external model */ @@ -1135,7 +1136,7 @@ static void PopulateTraceNodes(){ if ( m <= 0 || m >= bspModels.size() ) { continue; } - PopulateWithBSPModel( bspModels[ m ], transform ); + PopulateWithBSPModel( bspModels[ m ], matrix4_translation_for_vec3( origin ) ); break; /* external model */