replace for loop
This commit is contained in:
@@ -429,15 +429,7 @@ namespace FlaxEditor.Surface.Archetypes
|
|||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
public bool IsParamreferenced(SurfaceParameter param)
|
public bool IsParamreferenced(SurfaceParameter param)
|
||||||
{
|
{
|
||||||
for (int i = 0; i < Surface.Nodes.Count; i++)
|
return (Guid)Values[0] == param.ID;
|
||||||
{
|
|
||||||
if (Surface.Nodes[i] is IParametersDependantNode node)
|
|
||||||
{
|
|
||||||
return (Guid)Values[0] == param.ID;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
@@ -960,15 +952,7 @@ namespace FlaxEditor.Surface.Archetypes
|
|||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
public bool IsParamreferenced(SurfaceParameter param)
|
public bool IsParamreferenced(SurfaceParameter param)
|
||||||
{
|
{
|
||||||
for (int i = 0; i < Surface.Nodes.Count; i++)
|
return (Guid)Values[0] == param.ID;
|
||||||
{
|
|
||||||
if (Surface.Nodes[i] is IParametersDependantNode node)
|
|
||||||
{
|
|
||||||
return (Guid)Values[0] == param.ID;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
|
|||||||
Reference in New Issue
Block a user