Fix ref usage warnings with in-parameters

This commit is contained in:
2025-12-06 00:36:28 +02:00
parent 74bac97f44
commit ecf074801f
83 changed files with 185 additions and 185 deletions

View File

@@ -127,7 +127,7 @@ namespace FlaxEditor
// Pick a proper LOD
Float3 center = bounds.Center - renderContext.View.Origin;
int lodIndex = RenderTools.ComputeModelLOD(model, ref center, (float)bounds.Radius, ref renderContext);
int lodIndex = RenderTools.ComputeModelLOD(model, center, (float)bounds.Radius, renderContext);
var lods = model.LODs;
if (lods == null || lods.Length < lodIndex || lodIndex < 0)
continue;
@@ -138,7 +138,7 @@ namespace FlaxEditor
{
if (lod.Meshes[meshIndex].MaterialSlotIndex == highlight.EntryIndex)
{
lod.Meshes[meshIndex].Draw(ref renderContext, _highlightMaterial, ref world);
lod.Meshes[meshIndex].Draw(renderContext, _highlightMaterial, world);
}
}
}
@@ -157,7 +157,7 @@ namespace FlaxEditor
}
world = Matrix.Identity;
mesh.Draw(ref renderContext, _highlightMaterial, ref world);
mesh.Draw(renderContext, _highlightMaterial, world);
}
Profiler.EndEvent();