Progress toward popping up look-at widgets
This commit is contained in:
@@ -142,6 +142,7 @@ void UlxTangible::Destroy() {
|
||||
}
|
||||
|
||||
UlxTangible *UlxTangible::GetActorTangibleQuiet(AActor *actor) {
|
||||
if (actor == nullptr) return nullptr;
|
||||
UlxTangibleComponent* comp = actor->GetComponentByClass<UlxTangibleComponent>();
|
||||
if (comp == nullptr) return nullptr;
|
||||
return comp->Tangible.Get();
|
||||
@@ -150,7 +151,11 @@ UlxTangible *UlxTangible::GetActorTangibleQuiet(AActor *actor) {
|
||||
UlxTangible *UlxTangible::GetActorTangibleOrLog(AActor *actor) {
|
||||
UlxTangible *tan = GetActorTangibleQuiet(actor);
|
||||
if (tan == nullptr) {
|
||||
UE_LOG(LogBlueprint, Error, TEXT("Not a luprex tangible: %s"), *actor->GetName());
|
||||
if (actor == nullptr) {
|
||||
UE_LOG(LogBlueprint, Error, TEXT("Not a luprex tangible: passed in a null pointer"));
|
||||
} else {
|
||||
UE_LOG(LogBlueprint, Error, TEXT("Not a luprex tangible: %s"), *actor->GetName());
|
||||
}
|
||||
}
|
||||
return tan;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user