Fix corner handle scaling

This commit is contained in:
David Rowe 2017-07-18 20:48:16 +12:00
parent 3d69e240a9
commit 4c98cd26a4

View file

@ -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)];
}