Files
UnrealEngineUWP/Engine/Source/Runtime/InteractiveToolsFramework/Private/ToolTargets/ToolTarget.cpp
michael balzer 2b10993563 Move InteractiveToolsFramework and GeometryFramework out of Experimental
#jira UETOOL-3823
#rb brooke.hubert
#preflight 6109d1e9b4288d0001acb7ef

[CL 17055606 by michael balzer in ue5-main branch]
2021-08-04 13:58:55 -04:00

21 lines
503 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#include "ToolTargets/ToolTarget.h"
bool FToolTargetTypeRequirements::AreSatisfiedBy(UClass* Class) const
{
// we have to support all the required interfaces
for (const UClass* Interface : Interfaces)
{
if (!Class->ImplementsInterface(Interface))
{
return false;
}
}
return true;
}
bool FToolTargetTypeRequirements::AreSatisfiedBy(UToolTarget* ToolTarget) const
{
return !ToolTarget ? false : AreSatisfiedBy(ToolTarget->GetClass());
}