Skip to content

Commit 0dfb32e

Browse files
Update scratch3_control.js
1 parent 9657efb commit 0dfb32e

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/blocks/scratch3_control.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -193,13 +193,13 @@ class Scratch3ControlBlocks {
193193
}
194194

195195
allAtOnce (args, util) {
196-
// Since the "all at once" block is implemented for compatiblity with
197-
// Scratch 2.0 projects, it behaves the same way it did in 2.0, which
198-
// is to simply run the contained script (like "if 1 = 1").
199-
// (In early versions of Scratch 2.0, it would work the same way as
200-
// "run without screen refresh" custom blocks do now, but this was
201-
// removed before the release of 2.0.)
196+
// In Scratch 3.0 and TurboWarp, this would simply
197+
// run the contained substack. In Unsandboxed,
198+
// we've reimplemented the intended functionality
199+
// of running the stack all in one frame.
200+
util.thread.peekStackFrame().warpMode = false;
202201
util.startBranch(1, false);
202+
util.thread.peekStackFrame().warpMode = true;
203203
}
204204
}
205205

0 commit comments

Comments
 (0)