Merge pull request #10619 from NeetBhagat/4869-Entity-resize-issue

4869 entity resize issue
This commit is contained in:
Seth Alves 2017-06-08 16:34:07 -07:00 committed by GitHub
commit d87b858c0a

View file

@ -3334,7 +3334,8 @@ function MyController(hand) {
// If both secondary triggers squeezed, and the non-holding hand is empty, start scaling
if (this.secondarySqueezed() &&
this.getOtherHandController().secondarySqueezed() &&
this.getOtherHandController().state === STATE_OFF) {
this.grabbedThingID && this.getOtherHandController().grabbedThingID &&
this.grabbedThingID == this.getOtherHandController().grabbedThingID) {
this.scalingStartDistance = Vec3.length(Vec3.subtract(this.getHandPosition(),
this.getOtherHandController().getHandPosition()));
this.scalingStartDimensions = props.dimensions;