Skip to content
Snippets Groups Projects
Commit d0302fe5 authored by David Gilbert's avatar David Gilbert :bug:
Browse files

refactor(interaction): Fixes issue with function definition of HasInteractionTypeFlag

parent eb5eaab0
No related branches found
No related tags found
2 merge requests!107UE5.4-2024.1-rc1,!91Interaction refactoring and replication
Pipeline #426478 passed
...@@ -8,8 +8,6 @@ ...@@ -8,8 +8,6 @@
#include "Logging/StructuredLog.h" #include "Logging/StructuredLog.h"
#include "Utility/RWTHVRUtilities.h" #include "Utility/RWTHVRUtilities.h"
bool UInteractableComponent::HasInteractionTypeFlag(EInteractorType type) { return type & InteractorFilter; }
void UInteractableComponent::RestrictInteractionToComponents(const TArray<USceneComponent*>& Components) void UInteractableComponent::RestrictInteractionToComponents(const TArray<USceneComponent*>& Components)
{ {
if (Components.IsEmpty()) if (Components.IsEmpty())
......
...@@ -55,7 +55,7 @@ public: ...@@ -55,7 +55,7 @@ public:
bool bAllowInteractionFromChildGeometry = true; bool bAllowInteractionFromChildGeometry = true;
UFUNCTION(BlueprintCallable) UFUNCTION(BlueprintCallable)
FORCEINLINE bool HasInteractionTypeFlag(EInteractorType type); FORCEINLINE bool HasInteractionTypeFlag(EInteractorType Type) { return Type & InteractorFilter; }
/** /**
* @brief Restrict interactability to given components (e.g. if an object is grabbed, block interactions from other * @brief Restrict interactability to given components (e.g. if an object is grabbed, block interactions from other
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment