rename variable
This commit is contained in:
@@ -614,7 +614,7 @@ void USGVirtualHandComponent::FImpl::UpdateVisibility()
|
|||||||
const bool bGotMotionControllerData = Owner->GetMotionControllerData(MotionControllerData);
|
const bool bGotMotionControllerData = Owner->GetMotionControllerData(MotionControllerData);
|
||||||
const bool bHandDataAvailable = bGotMotionControllerData && MotionControllerData.bValid;
|
const bool bHandDataAvailable = bGotMotionControllerData && MotionControllerData.bValid;
|
||||||
const bool bIsHandVisible = Owner->GetVisibleFlag();
|
const bool bIsHandVisible = Owner->GetVisibleFlag();
|
||||||
const bool bShouldHandBeVisibleWhenHandDataUnavailable = Owner->IsVisibleWhenHandDataUnavailable();
|
const bool bShouldBeVisibleWhenHandDataUnavailable = Owner->IsVisibleWhenHandDataUnavailable();
|
||||||
|
|
||||||
bool bSetNewVisibility = false;
|
bool bSetNewVisibility = false;
|
||||||
|
|
||||||
@@ -633,7 +633,7 @@ void USGVirtualHandComponent::FImpl::UpdateVisibility()
|
|||||||
{
|
{
|
||||||
if (bIsHandVisible)
|
if (bIsHandVisible)
|
||||||
{
|
{
|
||||||
if (bShouldHandBeVisibleWhenHandDataUnavailable)
|
if (bShouldBeVisibleWhenHandDataUnavailable)
|
||||||
{
|
{
|
||||||
bSetNewVisibility = false;
|
bSetNewVisibility = false;
|
||||||
}
|
}
|
||||||
@@ -644,7 +644,7 @@ void USGVirtualHandComponent::FImpl::UpdateVisibility()
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (bShouldHandBeVisibleWhenHandDataUnavailable)
|
if (bShouldBeVisibleWhenHandDataUnavailable)
|
||||||
{
|
{
|
||||||
bSetNewVisibility = true;
|
bSetNewVisibility = true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user