From f229af93ecd69ef4d7603341e58bd134e7dda76a Mon Sep 17 00:00:00 2001 From: Justin Marshall Date: Sat, 8 Aug 2026 06:28:05 -0700 Subject: [PATCH] Fixes for decals and blaster weapon. --- src/bse/BSE_Electricity.cpp | 2 +- src/bse/BSE_Render.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/bse/BSE_Electricity.cpp b/src/bse/BSE_Electricity.cpp index c9837e9..b376d36 100644 --- a/src/bse/BSE_Electricity.cpp +++ b/src/bse/BSE_Electricity.cpp @@ -213,7 +213,7 @@ bool rvElectricityParticle::Render( const rvBSE *effect, const idMat3 &view, idVec3 position; EvaluatePosition( effect, position, time - mMotionStartTime ); if ( !GetLocked() ) { - work.length *= mInitAxis * effect->GetCurrentAxis(); + work.length *= mInitAxis * effect->GetCurrentAxis().Transpose(); } if ( GetGeneratedLine() ) { idVec3 velocity; diff --git a/src/bse/BSE_Render.cpp b/src/bse/BSE_Render.cpp index 98203d0..66ed5b9 100644 --- a/src/bse/BSE_Render.cpp +++ b/src/bse/BSE_Render.cpp @@ -206,7 +206,7 @@ bool rvLineParticle::Render( const rvBSE *effect, const idMat3 &view, EvaluatePosition( effect, position, time - mMotionStartTime ); if ( !( mFlags & PTFLAG_LOCKED ) ) { - length *= mInitAxis * effect->GetCurrentAxis(); + length *= mInitAxis * effect->GetCurrentAxis().Transpose(); } if ( mFlags & PTFLAG_GENERATED_LINE ) { idVec3 velocity; @@ -323,7 +323,7 @@ bool rvModelParticle::Render( const rvBSE *effect, const idMat3 &view, idMat3 transform; rvAngles( rotation ).ToMat3( transform ); if ( !( mFlags & PTFLAG_LOCKED ) ) { - transform *= mInitAxis * effect->GetCurrentAxis(); + transform *= mInitAxis * effect->GetCurrentAxis().Transpose(); } const modelSurface_t *surface = mModel->Surface( 0 );