Fix bug with entity selection shadow

This commit is contained in:
Ryan Huffman 2014-10-28 13:45:31 -07:00
parent cce1e23eec
commit bdfdeecc46

View file

@ -894,16 +894,9 @@ SelectionDisplay = (function () {
translateHandlesVisible = false; translateHandlesVisible = false;
} }
var dimensions, rotation, position; var rotation = SelectionManager.worldRotation;
if (spaceMode == SPACE_LOCAL) { var dimensions = SelectionManager.worldDimensions;
rotation = SelectionManager.localRotation; var position = SelectionManager.worldPosition;
dimensions = SelectionManager.localDimensions;
position = SelectionManager.localPosition;
} else {
rotation = SelectionManager.worldRotation;
dimensions = SelectionManager.worldDimensions;
position = SelectionManager.worldPosition;
}
Overlays.editOverlay(baseOfEntityProjectionOverlay, Overlays.editOverlay(baseOfEntityProjectionOverlay,
{ {