fix object recovery if it linked to auxiliary object

This commit is contained in:
Val Erastov 2016-09-09 02:22:07 -07:00
parent 2e49847d32
commit cba2f565e6

View file

@ -635,10 +635,8 @@ Segment.prototype.validate = function() {
Segment.prototype.recover = function() {
var recoverLength = 100;
this.a.x -= recoverLength;
this.a.y -= recoverLength;
this.b.x += recoverLength;
this.b.y += recoverLength;
this.a.translate(-recoverLength, -recoverLength);
this.b.translate( recoverLength, recoverLength);
};
Segment.prototype.collectParams = function(params) {