adobe-photoshop / spaces-design

Adobe Photoshop Design Space
http://adobe-photoshop.github.io/
Other
848 stars 81 forks source link

Update transform after the selected document is initialized. #3784

Closed shaoshing closed 8 years ago

shaoshing commented 8 years ago

Fix for issue #3655. Before, when selecting an uninitialized document, ui.updateTransform was executed before the selected document was set as the current document, and causes the action to read transform of the previously selected document wrongly. This PR changed the execution order to make sure ui.updateTransform is executed before documents.updateDocument.

iwehrman commented 8 years ago

Yep, makes sense. This was probably an over-eager optimization.