Skip to content
Snippets Groups Projects

Fix/cluster event wrapper

Merged Jonathan Ehret requested to merge fix/cluster-event-wrapper into dev/5.3
1 file
+ 7
0
Compare changes
  • Side-by-side
  • Inline
@@ -24,9 +24,14 @@ public:
void Attach(ObjectType* NewObject)
{
UE_LOG(LogTemp, Warning, TEXT("[DisplayClusterEventWrapper] Attach()."))
checkf(Object == nullptr, TEXT("The event is already attached."));
Object = NewObject;
ObjectId = Object->GetUniqueID();
UE_LOG(LogTemp, Warning, TEXT("[DisplayClusterEventWrapper] Object UniqueID: %d."), ObjectId)
EDisplayClusterOperationMode OperationMode = IDisplayCluster::Get().GetOperationMode();
if (OperationMode == EDisplayClusterOperationMode::Cluster)
@@ -51,6 +56,7 @@ public:
if (EventObjectId != ObjectId)
{
// Event does not belong to this object.
UE_LOG(LogTemp, Warning, TEXT("[DisplayClusterEventWrapper] Event does not belong to this object %d vs %d (this object)."), EventObjectId, ObjectId)
return;
}
@@ -60,6 +66,7 @@ public:
if (EventMethodName != MethodName)
{
// This event does not belong to this method.
UE_LOG(LogTemp, Warning, TEXT("[DisplayClusterEventWrapper] This event does not belong to this method. %s vs %s (this object)."), *EventMethodName, *MethodName)
return;
}
Loading