Add chaperone profile error message for nonzero offsets
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user