Fixed a bug were MD5 meshes bottom level accel struct was updated twice.

This commit is contained in:
Justin Marshall
2026-05-07 21:53:08 -07:00
parent af0a06db66
commit 205e9b8b1d
-2
View File
@@ -1093,8 +1093,6 @@ idRenderModel *R_EntityDefDynamicModel( idRenderEntityLocal *def ) {
idRenderModelStatic* staticMesh = (idRenderModelStatic*)def->cachedDynamicModel;
if (staticMesh)
{
staticMesh->UpdateDXR(def->dxrBottomAccelStruct);
float dxrTransformMatrix[16];
staticMesh->UpdateDXR(def->dxrBottomAccelStruct);
RB_CopyModelMatrixToDXRTransform(def->modelMatrix, dxrTransformMatrix);