mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-07-27 22:50:22 -04:00
Move tracking of edge activated hat values into target.
This commit is contained in:
parent
19737d4e39
commit
6c4fb29523
4 changed files with 40 additions and 34 deletions
src/engine
|
@ -63,9 +63,8 @@ const handleReport = function (resolvedValue, sequencer, thread, blockCached, la
|
|||
// true and used to be false, or the stack was activated explicitly
|
||||
// via stack click
|
||||
if (!thread.stackClick) {
|
||||
const oldEdgeValue = sequencer.runtime.updateEdgeActivatedValue(
|
||||
const oldEdgeValue = thread.target.updateEdgeActivatedValue(
|
||||
currentBlockId,
|
||||
thread.target.id,
|
||||
resolvedValue
|
||||
);
|
||||
const edgeWasActivated = !oldEdgeValue && resolvedValue;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue