mirror of
https://github.com/Hopiu/fabric.js.git
synced 2026-05-17 18:11:08 +00:00
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:
parent
3f14a96c5a
commit
46100b24bd
1 changed files with 4 additions and 3 deletions
|
|
@ -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;
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in a new issue