From 99fcef105fcd2dcd65bb1ce12abc7432bfadbc7f Mon Sep 17 00:00:00 2001 From: Thijs Wenker Date: Fri, 9 Nov 2018 17:59:00 +0100 Subject: [PATCH] spaceMode / desiredSpaceMode explanation --- scripts/system/libraries/entitySelectionTool.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/scripts/system/libraries/entitySelectionTool.js b/scripts/system/libraries/entitySelectionTool.js index febdebd335..168c81db1f 100644 --- a/scripts/system/libraries/entitySelectionTool.js +++ b/scripts/system/libraries/entitySelectionTool.js @@ -639,7 +639,18 @@ SelectionDisplay = (function() { ROLL: 2 }; + /** + * The current space mode, this could have been a forced space mode since we do not support multi selection while in + * local space mode. + * @type {string} - should only be set to SPACE_LOCAL or SPACE_WORLD + */ var spaceMode = SPACE_LOCAL; + + /** + * The desired space mode, this is the user set space mode, which should be respected whenever it is possible. In the case + * of multi entity selection this space mode may differ from the actual spaceMode. + * @type {string} - should only be set to SPACE_LOCAL or SPACE_WORLD + */ var desiredSpaceMode = SPACE_LOCAL; var overlayNames = [];