mirror of
https://github.com/overte-org/overte.git
synced 2025-08-04 01:03:38 +02:00
Fix corner handle scaling
This commit is contained in:
parent
3d69e240a9
commit
4c98cd26a4
1 changed files with 3 additions and 2 deletions
|
@ -327,9 +327,10 @@
|
|||
}
|
||||
|
||||
function scalingAxis(overlayID) {
|
||||
var axesIndex;
|
||||
if (isCornerHandle(overlayID)) {
|
||||
return Vec3.normalize(Vec3.multiplyVbyV(CORNER_HANDLE_OVERLAY_AXES[cornerHandleOverlays.indexOf(overlayID)],
|
||||
boundingBoxDimensions));
|
||||
axesIndex = CORNER_HANDLE_OVERLAY_AXES[cornerIndexes[cornerHandleOverlays.indexOf(overlayID)]];
|
||||
return Vec3.normalize(Vec3.multiplyVbyV(axesIndex, boundingBoxDimensions));
|
||||
}
|
||||
return FACE_HANDLE_OVERLAY_SCALE_AXES[faceHandleOverlays.indexOf(overlayID)];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue