Skip to content

Conversation

@cwillisf
Copy link
Contributor

@cwillisf cwillisf commented Feb 15, 2017

Resolves

Working toward scratchfoundation/scratch-render#62

Proposed Changes

The allStacksAndOwnersDo function in Scratch 2.0 runtime iterates targets in reverse. The corresponding function in Scratch 3.0, allScriptsDo, iterates targets in forward order. This change makes Scratch 3.0 match the Scratch 2.0 execution order.

Reason for Changes

Projects sometimes rely on that for correct initialization. If, for example, each sprite runs a "go back 999 layers" or "go to front" block as its first action, the order of execution will determine the ordering of the layers. This change causes such projects to run more correctly in Scratch 3.0.

Test Coverage

This change adds an integration test to verify that "when green flag" hats in multiple sprites execute in the same order as when run in the Scratch 2.0 implementation.

Christopher Willis-Ford added 2 commits February 13, 2017 14:44
The `allStacksAndOwnersDo` function in Scratch 2.0 runtime iterates
targets in reverse and projects sometimes rely on that for correct
initialization. If, for example, each sprite runs a "go back 999 layers"
or "go to front" block as its first action, the order of execution will
determine the ordering of the layers.

This change makes Scratch 3.0 match the Scratch 2.0 execution order.
Copy link
Contributor

@thisandagain thisandagain left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This makes sense to me. Thanks for cleaning up the jsdocs within rendered-target. Glad to see the integration test harness being useful.

@thisandagain thisandagain removed their assignment Feb 15, 2017
@rschamp rschamp removed their assignment Feb 15, 2017
@cwillisf cwillisf merged commit 1671cbe into scratchfoundation:develop Feb 16, 2017
@cwillisf cwillisf deleted the fix-cachalot branch February 16, 2017 20:59
stefania11 pushed a commit to mitmedialab/cognimates-vm that referenced this pull request Mar 31, 2018
…om-15.6.0

Update react-dom to the latest version 🚀
@griffpatch
Copy link
Contributor

Has this change been pushed out to the develop branch?
I have the issue reproduced with this project running in dev right now:
https://llk.github.io/scratch-gui/develop/#216001494

@thisandagain
Copy link
Contributor

@griffpatch Yes. Could you file a new issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants