diff --git a/Source/SenseGlove/Private/SenseGlove/Components/SGVirtualHandComponent.cpp b/Source/SenseGlove/Private/SenseGlove/Components/SGVirtualHandComponent.cpp index d48f0df0..5e1c7fba 100644 --- a/Source/SenseGlove/Private/SenseGlove/Components/SGVirtualHandComponent.cpp +++ b/Source/SenseGlove/Private/SenseGlove/Components/SGVirtualHandComponent.cpp @@ -786,7 +786,7 @@ void USGVirtualHandComponent::FImpl::UpdateVisibility() if (bSetNewVisibility) { - SetVisibility(bHandDataAvailable); + Owner->SetHiddenInGame(bHandDataAvailable); } } diff --git a/Source/SenseGlove/Private/SenseGlove/GameFramework/SGPawn.cpp b/Source/SenseGlove/Private/SenseGlove/GameFramework/SGPawn.cpp index f5ce1c99..43803d6d 100644 --- a/Source/SenseGlove/Private/SenseGlove/GameFramework/SGPawn.cpp +++ b/Source/SenseGlove/Private/SenseGlove/GameFramework/SGPawn.cpp @@ -628,11 +628,6 @@ void ASGPawn::OnRealLeftHandOverlapBegins( return; } - if (OtherActor == LeftHandGrabState.GrabbedActor) - { - return; - } - Pimpl->RegisterLeftHandOverlappedActor(OtherActor); } @@ -673,11 +668,6 @@ void ASGPawn::OnRealRightHandOverlapBegins( return; } - if (OtherActor == RightHandGrabState.GrabbedActor) - { - return; - } - Pimpl->RegisterRightHandOverlappedActor(OtherActor); } @@ -1997,7 +1987,6 @@ void ASGPawn::FImpl::SetVisibility(USceneComponent* SceneComponent, const bool b } SceneComponent->SetHiddenInGame(!bVisibility); - SceneComponent->SetVisibility(bVisibility); } void ASGPawn::FImpl::UpdateHandLocation(const bool bRight, const FVector& Location, const bool bUpdateVirtualHand) const