fix toggle adjust chaperone with rotation

This commit is contained in:
Robin Appelman
2018-04-02 02:14:52 +02:00
parent e74dcb9c5e
commit 64bbe88206
@@ -119,13 +119,7 @@ void MoveCenterTabController::setAdjustChaperone(bool value, bool notify) {
};
rotateCoordinates(offset, angle);
parent->AddOffsetToCollisionBounds(offset, false);
if (m_rotation != 0) {
float angle = m_rotation * 2 * M_PI / 360.0;
//parent->RotateCollisionBounds(offsetdir * angle, false);
}
vr::VRChaperoneSetup()->CommitWorkingCopy(vr::EChaperoneConfigFile_Live);
parent->AddOffsetToCollisionBounds(offset);
}
auto settings = OverlayController::appSettings();
settings->beginGroup("playspaceSettings");