Skip to content
Snippets Groups Projects
Commit 0b8b13b6 authored by Ehret's avatar Ehret
Browse files

also check whether HitActor is not nullptr on Tick (apparently Actor can be...

also check whether HitActor is not nullptr on Tick (apparently Actor can be nullptr even if isSet is true)
adding to the fix in commit 9de243b2
parent 0a98875a
No related branches found
No related tags found
3 merge requests!22Get changes and fixes from 4.26 into 5 as well,!16update 4.27 branch to newest changes in 4.26,!12addition to previous InteractionRaytracing Bug Fix
......@@ -138,7 +138,7 @@ void UBasicVRInteractionComponent::TickComponent(float DeltaTime, ELevelTick Tic
const FTwoVectors StartEnd = GetHandRay(MaxClickDistance);
TOptional<FHitResult> Hit = RaytraceForFirstHit(StartEnd);
if (!Hit.IsSet())
if (!Hit.IsSet() || !Hit->GetActor())
{
if(InteractionRayVisibility==EInteractionRayVisibility::VisibleOnHoverOnly)
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment