mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-07-27 22:50:22 -04:00
Fix issue where edge-activated hats only run on one sprite when sprite is duplicated or cloned.
This commit is contained in:
parent
532e63da15
commit
19737d4e39
4 changed files with 101 additions and 3 deletions
src/engine
|
@ -65,6 +65,7 @@ const handleReport = function (resolvedValue, sequencer, thread, blockCached, la
|
|||
if (!thread.stackClick) {
|
||||
const oldEdgeValue = sequencer.runtime.updateEdgeActivatedValue(
|
||||
currentBlockId,
|
||||
thread.target.id,
|
||||
resolvedValue
|
||||
);
|
||||
const edgeWasActivated = !oldEdgeValue && resolvedValue;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue