mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-10 16:08:36 +02:00
Fix entity losing previous scale when resume direct scaling
This commit is contained in:
parent
485190456d
commit
3d69e240a9
1 changed files with 6 additions and 0 deletions
|
@ -747,6 +747,10 @@
|
|||
}
|
||||
}
|
||||
|
||||
function finishDirectScaling() {
|
||||
select(selectedEntityID); // Refresh.
|
||||
}
|
||||
|
||||
function startHandleScaling() {
|
||||
// Save initial position data so that can scale relative to these without accumulating float errors.
|
||||
scaleRootPosition = rootPosition;
|
||||
|
@ -803,6 +807,7 @@
|
|||
setPositionAndOrientation: setPositionAndOrientation,
|
||||
startDirectScaling: startDirectScaling,
|
||||
directScale: directScale,
|
||||
finishDirectScaling: finishDirectScaling,
|
||||
startHandleScaling: startHandleScaling,
|
||||
handleScale: handleScale,
|
||||
finishHandleScaling: finishHandleScaling,
|
||||
|
@ -1310,6 +1315,7 @@
|
|||
}
|
||||
|
||||
function stopDirectScaling() {
|
||||
selection.finishDirectScaling();
|
||||
isDirectScaling = false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue