fix a few virtual hand component visibility issues
This commit is contained in:
@@ -731,7 +731,7 @@ void USGVirtualHandComponent::FImpl::RestoreCollisionResponse() const
|
||||
|
||||
void USGVirtualHandComponent::FImpl::SetVisibility(const bool bInVisible)
|
||||
{
|
||||
Owner->SetVisibility(bInVisible, true);
|
||||
Owner->SetHiddenInGame(!bInVisible, false);
|
||||
|
||||
if (bInVisible)
|
||||
{
|
||||
@@ -798,7 +798,7 @@ void USGVirtualHandComponent::FImpl::UpdateVisibility()
|
||||
|
||||
if (bSetNewVisibility)
|
||||
{
|
||||
Owner->SetHiddenInGame(bHandDataAvailable);
|
||||
SetVisibility(bHandDataAvailable);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1986,7 +1986,7 @@ void ASGPawn::FImpl::SetVisibility(USceneComponent* SceneComponent, const bool b
|
||||
return;
|
||||
}
|
||||
|
||||
SceneComponent->SetHiddenInGame(!bVisibility);
|
||||
SceneComponent->SetHiddenInGame(!bVisibility, false);
|
||||
}
|
||||
|
||||
void ASGPawn::FImpl::UpdateHandLocation(const bool bRight, const FVector& Location, const bool bUpdateVirtualHand) const
|
||||
|
||||
Reference in New Issue
Block a user