Add chaperone profile error message for nonzero offsets

This commit is contained in:
Kung-vr
2019-10-12 16:06:40 +09:00
parent 09aaac114c
commit 37cae56bcb
@@ -126,6 +126,11 @@ MyStackViewPage {
&& !chaperoneNewProfileIncludeForceBounds.checked
&& !chaperoneNewProfileIncludeProximityWarnings.checked) {
chaperoneMessageDialog.showMessage("Create New Profile", "ERROR: Nothing included.")
} else if ( Math.abs(MoveCenterTabController.offsetX) > 0.00000000001
|| Math.abs(MoveCenterTabController.offsetY) > 0.00000000001
|| Math.abs(MoveCenterTabController.offsetZ) > 0.00000000001
|| MoveCenterTabController.rotation !== 0) {
chaperoneMessageDialog.showMessage("Create New Profile", "ERROR: Offsets not reset.")
} else {
ChaperoneTabController.addChaperoneProfile(chaperoneNewProfileName.text,
chaperoneNewProfileIncludeGeometry.checked,