force USGVirtualHandComponent and USGWristTrackerComponent update their xr hand-tracking data when their handedness is updated
This commit is contained in:
@@ -266,6 +266,8 @@ void USGVirtualHandComponent::SetRight(const bool bInRight)
|
||||
{
|
||||
bRight = bInRight;
|
||||
|
||||
Pimpl->UpdateXRData();
|
||||
|
||||
if (!Pimpl->IsUsingUserMesh())
|
||||
{
|
||||
Pimpl->SetDefaultMesh();
|
||||
@@ -371,12 +373,12 @@ void USGVirtualHandComponent::InitializeComponent()
|
||||
{
|
||||
Super::InitializeComponent();
|
||||
|
||||
Pimpl->UpdateXRData();
|
||||
|
||||
if (!Pimpl->IsUsingUserMesh())
|
||||
{
|
||||
Pimpl->SetDefaultMesh();
|
||||
}
|
||||
|
||||
Pimpl->UpdateXRData();
|
||||
}
|
||||
|
||||
void USGVirtualHandComponent::UninitializeComponent()
|
||||
|
||||
@@ -145,7 +145,10 @@ FName USGWristTrackerComponent::FImpl::ParseWristTrackingSettingsOverridesProper
|
||||
void USGWristTrackerComponent::SetRight(const bool bInRight)
|
||||
{
|
||||
bRight = bInRight;
|
||||
|
||||
Pimpl->UpdateMotionSource();
|
||||
Pimpl->UpdateXRData();
|
||||
Pimpl->UpdateWristTrackingData();
|
||||
}
|
||||
|
||||
void USGWristTrackerComponent::SetWristTrackingSettingsOverrides(
|
||||
|
||||
Reference in New Issue
Block a user