Skip to content

Commit

Permalink
Rename misspelled method
Browse files Browse the repository at this point in the history
  • Loading branch information
ItsPepperpot committed Sep 17, 2024
1 parent 9b73152 commit 06a7b04
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ private Asset GetAssetOfType(AssetType assetType, AssetTemplate assetTemplate, b
return (from asset in assetDictionary.Values where asset.assetType == assetType select asset).FirstOrDefault();
}

public static Vector3 GetRayInterserctionPosition(SharpRenderer renderer, Ray ray, uint assetIdSkip = 0)
public static Vector3 GetRayIntersectionPosition(SharpRenderer renderer, Ray ray, uint assetIdSkip = 0)
{
List<IRenderableAsset> l = new List<IRenderableAsset>();
try
Expand Down Expand Up @@ -244,7 +244,7 @@ public void DropSelectedAssets(SharpRenderer renderer)
if ((a is AssetTRIG trig && trig.Shape == TriggerShape.Box) || (a is AssetVOLU volu && volu.Shape == VolumeType.Box))
continue;

var position = GetRayInterserctionPosition(renderer,
var position = GetRayIntersectionPosition(renderer,
new Ray(new Vector3(a.PositionX, a.PositionY, a.PositionZ), new Vector3(0f, -1f, 0f)),
((Asset)a).assetID);

Expand Down
2 changes: 1 addition & 1 deletion IndustrialPark/MainForm/MainForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1024,7 +1024,7 @@ public void ScreenClicked(SharpDX.Rectangle viewRectangle, int X, int Y, bool is
}

public Vector3 GetScreenClickedPosition(SharpDX.Rectangle viewRectangle, int X, int Y) =>
ArchiveEditorFunctions.GetRayInterserctionPosition(renderer,
ArchiveEditorFunctions.GetRayIntersectionPosition(renderer,
Ray.GetPickRay(X, Y, new Viewport(viewRectangle), renderer.viewProjection));

private void renderPanel_MouseUp(object sender, MouseEventArgs e)
Expand Down

0 comments on commit 06a7b04

Please sign in to comment.