Code style fix #1146

This commit is contained in:
Wojtek Figat
2023-06-09 13:44:26 +02:00
parent ee7f2b3724
commit 248f78ed56
2 changed files with 3 additions and 5 deletions

View File

@@ -787,12 +787,12 @@ void FindActorsRecursiveByParentTags(Actor* node, const Array<Tag>& tags, Array<
{
for (Tag tag : tags)
{
if (node->HasTag(tag)) {
if (node->HasTag(tag))
{
result.Add(node);
break;
}
}
for (Actor* child : node->Children)
FindActorsRecursiveByParentTags(child, tags, result);
}
@@ -836,7 +836,7 @@ Array<Actor*> Level::FindActors(const Tag& tag, Actor* root)
return result;
}
API_FUNCTION()Array<Actor*> Level::FindActorsByParentTag(const Tag& parentTag, Actor* root)
Array<Actor*> Level::FindActorsByParentTag(const Tag& parentTag, Actor* root)
{
PROFILE_CPU();
Array<Actor*> result;
@@ -846,7 +846,6 @@ API_FUNCTION()Array<Actor*> Level::FindActorsByParentTag(const Tag& parentTag, A
{
return result;
}
if (subTags.Count() == 1)
{
result = FindActors(subTags[0], root);

View File

@@ -397,7 +397,6 @@ public:
/// <returns>Found actors list.</returns>
API_FUNCTION() static Array<Actor*> GetActors(API_PARAM(Attributes="TypeReference(typeof(Actor))") const MClass* type);
/// <summary>
/// Finds all the scripts of the given type in all the loaded scenes.
/// </summary>