WMR/Rift bind release reset fix and space fix undo disable (#142)
* Test removal of HideWorkingSetPreview for issue #133 * Update WorkingSetPreview on apply reset data for issue #133 * fixed bug to apply floor fix offsets properly * updated version to 3.0.1 * format * Prevent space offsets effect on fix floor measurement * Reorder chaperone commit timing on reset This is an attempt to smooth apparent ~0.1sec lag on first movement after using a reset. * Fix space fix tab (todo: reimplement undo button)
This commit is contained in:
@@ -731,6 +731,7 @@ void MoveCenterTabController::clampVelocity( double* velocity )
|
||||
|
||||
void MoveCenterTabController::updateChaperoneResetData()
|
||||
{
|
||||
vr::VRChaperoneSetup()->HideWorkingSetPreview();
|
||||
vr::VRChaperoneSetup()->RevertWorkingCopy();
|
||||
unsigned currentQuadCount = 0;
|
||||
vr::VRChaperoneSetup()->GetWorkingCollisionBoundsInfo( nullptr,
|
||||
@@ -768,16 +769,22 @@ void MoveCenterTabController::updateChaperoneResetData()
|
||||
-universeCenterForResetYaw );
|
||||
}
|
||||
}
|
||||
// update the working set preview for potential Oculus and WMR issues
|
||||
vr::VRChaperoneSetup()->ShowWorkingSetPreview();
|
||||
}
|
||||
|
||||
void MoveCenterTabController::applyChaperoneResetData()
|
||||
{
|
||||
vr::VRChaperoneSetup()->HideWorkingSetPreview();
|
||||
vr::VRChaperoneSetup()->RevertWorkingCopy();
|
||||
vr::VRChaperoneSetup()->SetWorkingCollisionBoundsInfo(
|
||||
m_collisionBoundsForReset, m_collisionBoundsCountForReset );
|
||||
vr::VRChaperoneSetup()->SetWorkingStandingZeroPoseToRawTrackingPose(
|
||||
&m_universeCenterForReset );
|
||||
vr::VRChaperoneSetup()->CommitWorkingCopy( vr::EChaperoneConfigFile_Live );
|
||||
// update the working set preview otherwise Oculus and WMR users may not see
|
||||
// results of the reset
|
||||
vr::VRChaperoneSetup()->ShowWorkingSetPreview();
|
||||
}
|
||||
|
||||
// START of drag bindings:
|
||||
@@ -1487,7 +1494,8 @@ void MoveCenterTabController::saveUncommittedChaperone()
|
||||
{
|
||||
vr::VRChaperoneSetup()->CommitWorkingCopy(
|
||||
vr::EChaperoneConfigFile_Live );
|
||||
vr::VRChaperoneSetup()->HideWorkingSetPreview();
|
||||
// test removal for oculus and WMR users
|
||||
// vr::VRChaperoneSetup()->HideWorkingSetPreview();
|
||||
m_chaperoneCommitted = true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user