fix toggle adjust chaperone with rotation
This commit is contained in:
@@ -119,13 +119,7 @@ void MoveCenterTabController::setAdjustChaperone(bool value, bool notify) {
|
|||||||
};
|
};
|
||||||
rotateCoordinates(offset, angle);
|
rotateCoordinates(offset, angle);
|
||||||
|
|
||||||
parent->AddOffsetToCollisionBounds(offset, false);
|
parent->AddOffsetToCollisionBounds(offset);
|
||||||
|
|
||||||
if (m_rotation != 0) {
|
|
||||||
float angle = m_rotation * 2 * M_PI / 360.0;
|
|
||||||
//parent->RotateCollisionBounds(offsetdir * angle, false);
|
|
||||||
}
|
|
||||||
vr::VRChaperoneSetup()->CommitWorkingCopy(vr::EChaperoneConfigFile_Live);
|
|
||||||
}
|
}
|
||||||
auto settings = OverlayController::appSettings();
|
auto settings = OverlayController::appSettings();
|
||||||
settings->beginGroup("playspaceSettings");
|
settings->beginGroup("playspaceSettings");
|
||||||
|
|||||||
Reference in New Issue
Block a user