Add chaperone profile error message for nonzero offsets
This commit is contained in:
@@ -126,6 +126,11 @@ MyStackViewPage {
|
|||||||
&& !chaperoneNewProfileIncludeForceBounds.checked
|
&& !chaperoneNewProfileIncludeForceBounds.checked
|
||||||
&& !chaperoneNewProfileIncludeProximityWarnings.checked) {
|
&& !chaperoneNewProfileIncludeProximityWarnings.checked) {
|
||||||
chaperoneMessageDialog.showMessage("Create New Profile", "ERROR: Nothing included.")
|
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 {
|
} else {
|
||||||
ChaperoneTabController.addChaperoneProfile(chaperoneNewProfileName.text,
|
ChaperoneTabController.addChaperoneProfile(chaperoneNewProfileName.text,
|
||||||
chaperoneNewProfileIncludeGeometry.checked,
|
chaperoneNewProfileIncludeGeometry.checked,
|
||||||
|
|||||||
Reference in New Issue
Block a user