mirror of
https://thingvellir.net/git/overte
synced 2025-03-27 23:52:03 +01:00
fix toggling to world space
This commit is contained in:
parent
87d26a9d86
commit
030e697945
1 changed files with 6 additions and 4 deletions
|
@ -201,8 +201,10 @@ SelectionManager = (function() {
|
|||
that.worldRotation = properties.boundingBox.rotation;
|
||||
|
||||
that.entityType = properties.type;
|
||||
|
||||
SelectionDisplay.setSpaceMode(SPACE_LOCAL);
|
||||
|
||||
if (selectionUpdated) {
|
||||
SelectionDisplay.setSpaceMode(SPACE_LOCAL);
|
||||
}
|
||||
} else {
|
||||
that.localRotation = null;
|
||||
that.localDimensions = null;
|
||||
|
@ -1401,7 +1403,7 @@ SelectionDisplay = (function() {
|
|||
that.setHandleRotateYawVisible(!activeTool || isActiveTool(handleRotateYawRing));
|
||||
that.setHandleRotateRollVisible(!activeTool || isActiveTool(handleRotateRollRing));
|
||||
|
||||
var showScaleStretch = !activeTool && SelectionManager.selections.length === 1;
|
||||
var showScaleStretch = !activeTool && SelectionManager.selections.length === 1 && spaceMode === SPACE_LOCAL;
|
||||
that.setHandleStretchXVisible(showScaleStretch || isActiveTool(handleStretchXSphere));
|
||||
that.setHandleStretchYVisible(showScaleStretch || isActiveTool(handleStretchYSphere));
|
||||
that.setHandleStretchZVisible(showScaleStretch || isActiveTool(handleStretchZSphere));
|
||||
|
@ -2059,7 +2061,7 @@ SelectionDisplay = (function() {
|
|||
};
|
||||
|
||||
var onMove = function(event) {
|
||||
var proportional = (spaceMode === SPACE_WORLD) || directionEnum === STRETCH_DIRECTION.ALL;
|
||||
var proportional = directionEnum === STRETCH_DIRECTION.ALL;
|
||||
|
||||
var position, dimensions, rotation;
|
||||
if (spaceMode === SPACE_LOCAL) {
|
||||
|
|
Loading…
Reference in a new issue