mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-06 04:42:15 -05:00
Make sure project we import into is active.
This commit is contained in:
parent
85920bbdb8
commit
0f74c01f75
1 changed files with 1 additions and 0 deletions
|
@ -270,6 +270,7 @@ var Project = PaperScopeItem.extend(/** @lends Project# */{
|
|||
// Unbox project data, as we don't want to create a new project object.
|
||||
if (json[0] === 'Project')
|
||||
json = json[1];
|
||||
this.activate();
|
||||
return Base.importJSON(json);
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in a new issue