Fix ref usage warnings with in-parameters
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user