mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-06-04 17:44:43 -04:00
fix sb2 conversion to load into correct VIDEO_STATE
This commit is contained in:
parent
9cd5e4da2b
commit
e20723994f
2 changed files with 12 additions and 3 deletions
src/serialization
|
@ -627,6 +627,16 @@ const parseBlock = function (sb2block, addBroadcastMsg, getVariableId, extension
|
|||
} else if (fieldValue === 'this sprite') {
|
||||
fieldValue = 2;
|
||||
}
|
||||
} else if (expectedArg.inputOp === 'videoSensing.menu.VIDEO_STATE') {
|
||||
if (shadowObscured) {
|
||||
fieldValue = 2;
|
||||
} else if (fieldValue === 'off') {
|
||||
fieldValue = 1;
|
||||
} else if (fieldValue === 'on') {
|
||||
fieldValue = 2;
|
||||
} else if (fieldValue === 'on-flipped') {
|
||||
fieldValue = 3;
|
||||
}
|
||||
} else if (shadowObscured) {
|
||||
// Filled drop-down menu.
|
||||
fieldValue = '';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue