fix docs commend and function name

This commit is contained in:
xxSeys1
2024-10-24 23:28:48 +02:00
parent 57b4e9f295
commit 2952bdca66
3 changed files with 6 additions and 6 deletions

View File

@@ -427,7 +427,7 @@ namespace FlaxEditor.Surface.Archetypes
}
/// <inheritdoc />
public bool IsParameterReferenced(SurfaceParameter param, VisjectSurface surface)
public bool IsParamreferenced(SurfaceParameter param, VisjectSurface surface)
{
for (int i = 0; i < surface.Nodes.Count; i++)
{
@@ -958,7 +958,7 @@ namespace FlaxEditor.Surface.Archetypes
}
/// <inheritdoc />
public bool IsParameterReferenced(SurfaceParameter param, VisjectSurface surface)
public bool IsParamreferenced(SurfaceParameter param, VisjectSurface surface)
{
for (int i = 0; i < surface.Nodes.Count; i++)
{

View File

@@ -38,8 +38,8 @@ namespace FlaxEditor.Surface
/// Get if the parameter is referenced in a graph. Referenced in this case means in a graph and at least one node in-/output connected to another node.
/// </summary>
/// <param name="param">The parameter.</param>
/// /// <param name="surface">The visject surface.</param>
/// <returns>How often the parameter is referenced.</returns>
bool IsParameterReferenced(SurfaceParameter param, VisjectSurface surface);
/// <param name="surface">The visject surface.</param>
/// <returns>If the parameter is referenced.</returns>
bool IsParamreferenced(SurfaceParameter param, VisjectSurface surface);
}
}

View File

@@ -788,7 +788,7 @@ namespace FlaxEditor.Surface
{
if (nodes[i] is IParametersDependantNode node)
{
if (displayWarning && node.IsParameterReferenced(param, window.VisjectSurface))
if (displayWarning && node.IsParamreferenced(param, window.VisjectSurface))
connectedParameterNodeCount++;
}
}