Moves the resetting of _currentTransform.target inside if (activeGroup)

This solves a problem that occurred if you were transforming (moving, scaling, rotating) a single object
when toJSON()/toObject() was run.
This commit is contained in:
Anders Lisspers 2014-04-03 16:20:05 +02:00
parent 3f14a96c5a
commit 46100b24bd

View file

@ -895,11 +895,12 @@
activeGroup.forEachObject(function(o) {
o.set('active', true);
});
if (this._currentTransform) {
this._currentTransform.target = this.getActiveGroup();
}
}
if (this._currentTransform) {
this._currentTransform.target = this.getActiveGroup();
}
return data;
},