mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2024-12-24 15:02:52 -05:00
Fix issue with importing broadcast block with obscured empty string shadow.
This commit is contained in:
parent
cd7e03f0f6
commit
a4d9ff9266
1 changed files with 10 additions and 12 deletions
|
@ -639,7 +639,6 @@ const parseBlock = function (sb2block, addBroadcastMsg, getVariableId, extension
|
||||||
// event_broadcast_menus have some extra properties to add to the
|
// event_broadcast_menus have some extra properties to add to the
|
||||||
// field and a different value than the rest
|
// field and a different value than the rest
|
||||||
if (expectedArg.inputOp === 'event_broadcast_menu') {
|
if (expectedArg.inputOp === 'event_broadcast_menu') {
|
||||||
if (!shadowObscured) {
|
|
||||||
// Need to update the broadcast message name map with
|
// Need to update the broadcast message name map with
|
||||||
// the value of this field.
|
// the value of this field.
|
||||||
// Also need to provide the fields[fieldName] object,
|
// Also need to provide the fields[fieldName] object,
|
||||||
|
@ -650,7 +649,6 @@ const parseBlock = function (sb2block, addBroadcastMsg, getVariableId, extension
|
||||||
// and come up with a fresh messageN.
|
// and come up with a fresh messageN.
|
||||||
const broadcastId = addBroadcastMsg(fieldValue, fields[fieldName]);
|
const broadcastId = addBroadcastMsg(fieldValue, fields[fieldName]);
|
||||||
fields[fieldName].id = broadcastId;
|
fields[fieldName].id = broadcastId;
|
||||||
}
|
|
||||||
fields[fieldName].variableType = expectedArg.variableType;
|
fields[fieldName].variableType = expectedArg.variableType;
|
||||||
}
|
}
|
||||||
activeBlock.children.push({
|
activeBlock.children.push({
|
||||||
|
|
Loading…
Reference in a new issue