Fix group origin after toJSON

This commit is contained in:
kangax 2014-02-10 21:37:38 -05:00
parent a80502f957
commit be96d93f6e

View file

@ -888,7 +888,10 @@
fabric.util.populateWithProperties(this, data, propertiesToInclude);
if (activeGroup) {
this.setActiveGroup(new fabric.Group(activeGroup.getObjects()));
this.setActiveGroup(new fabric.Group(activeGroup.getObjects(), {
originX: 'center',
originY: 'center'
}));
activeGroup.forEachObject(function(o) {
o.set('active', true);
});