replace for loop
This commit is contained in:
@@ -428,17 +428,9 @@ namespace FlaxEditor.Surface.Archetypes
|
||||
|
||||
/// <inheritdoc />
|
||||
public bool IsParamreferenced(SurfaceParameter param)
|
||||
{
|
||||
for (int i = 0; i < Surface.Nodes.Count; i++)
|
||||
{
|
||||
if (Surface.Nodes[i] is IParametersDependantNode node)
|
||||
{
|
||||
return (Guid)Values[0] == param.ID;
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public override void OnLoaded(SurfaceNodeActions action)
|
||||
@@ -959,17 +951,9 @@ namespace FlaxEditor.Surface.Archetypes
|
||||
|
||||
/// <inheritdoc />
|
||||
public bool IsParamreferenced(SurfaceParameter param)
|
||||
{
|
||||
for (int i = 0; i < Surface.Nodes.Count; i++)
|
||||
{
|
||||
if (Surface.Nodes[i] is IParametersDependantNode node)
|
||||
{
|
||||
return (Guid)Values[0] == param.ID;
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public override void OnLoaded(SurfaceNodeActions action)
|
||||
|
||||
Reference in New Issue
Block a user