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:
@@ -812,7 +812,8 @@ void ChaperoneTabController::setHeight( float value, bool notify )
|
||||
if ( m_height != value )
|
||||
{
|
||||
m_height = value;
|
||||
vr::VRChaperoneSetup()->RevertWorkingCopy();
|
||||
// TODO revert?
|
||||
// vr::VRChaperoneSetup()->RevertWorkingCopy();
|
||||
unsigned collisionBoundsCount = 0;
|
||||
vr::VRChaperoneSetup()->GetWorkingCollisionBoundsInfo(
|
||||
nullptr, &collisionBoundsCount );
|
||||
@@ -831,8 +832,9 @@ void ChaperoneTabController::setHeight( float value, bool notify )
|
||||
}
|
||||
vr::VRChaperoneSetup()->SetWorkingCollisionBoundsInfo(
|
||||
collisionBounds, collisionBoundsCount );
|
||||
vr::VRChaperoneSetup()->CommitWorkingCopy(
|
||||
vr::EChaperoneConfigFile_Live );
|
||||
// TODO revert?
|
||||
// vr::VRChaperoneSetup()->CommitWorkingCopy(
|
||||
// vr::EChaperoneConfigFile_Live );
|
||||
delete[] collisionBounds;
|
||||
}
|
||||
if ( notify )
|
||||
@@ -1358,6 +1360,7 @@ void ChaperoneTabController::addChaperoneProfile(
|
||||
profile->includesChaperoneGeometry = includeGeometry;
|
||||
if ( includeGeometry )
|
||||
{
|
||||
vr::VRChaperoneSetup()->HideWorkingSetPreview();
|
||||
vr::VRChaperoneSetup()->RevertWorkingCopy();
|
||||
uint32_t quadCount = 0;
|
||||
vr::VRChaperoneSetup()->GetLiveCollisionBoundsInfo( nullptr,
|
||||
@@ -1505,6 +1508,7 @@ void ChaperoneTabController::applyChaperoneProfile( unsigned index )
|
||||
if ( profile.includesChaperoneGeometry )
|
||||
{
|
||||
parent->m_moveCenterTabController.reset();
|
||||
vr::VRChaperoneSetup()->HideWorkingSetPreview();
|
||||
vr::VRChaperoneSetup()->RevertWorkingCopy();
|
||||
vr::VRChaperoneSetup()->SetWorkingCollisionBoundsInfo(
|
||||
profile.chaperoneGeometryQuads.get(),
|
||||
|
||||
Reference in New Issue
Block a user