Fix ref usage warnings with in-parameters
This commit is contained in:
@@ -36,7 +36,7 @@ namespace FlaxEditor.SceneGraph
|
||||
}
|
||||
|
||||
var center = _actor.Transform.Translation;
|
||||
ViewportIconsRenderer.GetBounds(ref center, ref ray.Ray.Position, out var sphere);
|
||||
ViewportIconsRenderer.GetBounds(center, ray.Ray.Position, out var sphere);
|
||||
return CollisionsHelper.RayIntersectsSphere(ref ray.Ray, ref sphere, out distance);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -184,7 +184,7 @@ namespace FlaxEditor.SceneGraph.Actors
|
||||
/// <inheritdoc />
|
||||
public override bool RayCastSelf(ref RayCastData ray, out Real distance, out Vector3 normal)
|
||||
{
|
||||
return Brush.Intersects(Index, ref ray.Ray, out distance, out normal);
|
||||
return Brush.Intersects(Index, ray.Ray, out distance, out normal);
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
|
||||
@@ -58,7 +58,7 @@ namespace FlaxEditor.SceneGraph.Actors
|
||||
public override Transform Transform
|
||||
{
|
||||
get => Actor.GetInstance(Index).Transform;
|
||||
set => Actor.SetInstanceTransform(Index, ref value);
|
||||
set => Actor.SetInstanceTransform(Index, value);
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
|
||||
Reference in New Issue
Block a user