replace for loop

This commit is contained in:
xxSeys1
2024-11-21 20:20:42 +01:00
parent b055117144
commit 38d1e25604

View File

@@ -429,15 +429,7 @@ 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;
return (Guid)Values[0] == param.ID;
}
/// <inheritdoc />
@@ -960,15 +952,7 @@ 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;
return (Guid)Values[0] == param.ID;
}
/// <inheritdoc />