mirror of
https://github.com/overte-org/overte.git
synced 2025-07-23 17:44:13 +02:00
show outline for zones when rotating
This commit is contained in:
parent
3c620282b1
commit
175532c444
1 changed files with 7 additions and 2 deletions
|
@ -1018,6 +1018,7 @@ SelectionDisplay = (function() {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if (SelectionManager.hasSelection()) {
|
if (SelectionManager.hasSelection()) {
|
||||||
var position = SelectionManager.worldPosition;
|
var position = SelectionManager.worldPosition;
|
||||||
var rotation = spaceMode === SPACE_LOCAL ? SelectionManager.localRotation : SelectionManager.worldRotation;
|
var rotation = spaceMode === SPACE_LOCAL ? SelectionManager.localRotation : SelectionManager.worldRotation;
|
||||||
|
@ -1317,8 +1318,12 @@ SelectionDisplay = (function() {
|
||||||
isActiveTool(handleScaleRTNCube) || isActiveTool(handleScaleLTFCube) ||
|
isActiveTool(handleScaleRTNCube) || isActiveTool(handleScaleLTFCube) ||
|
||||||
isActiveTool(handleScaleRTFCube) || isActiveTool(handleStretchXSphere) ||
|
isActiveTool(handleScaleRTFCube) || isActiveTool(handleStretchXSphere) ||
|
||||||
isActiveTool(handleStretchYSphere) || isActiveTool(handleStretchZSphere));
|
isActiveTool(handleStretchYSphere) || isActiveTool(handleStretchZSphere));
|
||||||
that.setHandleScaleEdgeVisible(!isActiveTool(handleRotatePitchRing) && !isActiveTool(handleRotateYawRing) &&
|
|
||||||
!isActiveTool(handleRotateRollRing));
|
var showOutlineForZone = (SelectionManager.selections.length === 1 &&
|
||||||
|
SelectionManager.savedProperties[SelectionManager.selections[0]].type === "Zone");
|
||||||
|
that.setHandleScaleEdgeVisible(showOutlineForZone || (!isActiveTool(handleRotatePitchRing) &&
|
||||||
|
!isActiveTool(handleRotateYawRing) &&
|
||||||
|
!isActiveTool(handleRotateRollRing)));
|
||||||
|
|
||||||
//keep cloner always hidden for now since you can hold Alt to clone while
|
//keep cloner always hidden for now since you can hold Alt to clone while
|
||||||
//translating an entity - we may bring cloner back for HMD only later
|
//translating an entity - we may bring cloner back for HMD only later
|
||||||
|
|
Loading…
Reference in a new issue