mirror of
https://github.com/google/blockly.git
synced 2026-01-07 00:50:27 +01:00
Properly deal with shadow statement blocks in stacks.
This commit is contained in:
@@ -180,8 +180,9 @@ Blockly.Connection.prototype.connect_ = function(childConnection) {
|
||||
// block. Since this block may be a stack, walk down to the end.
|
||||
var newBlock = childBlock;
|
||||
while (newBlock.nextConnection) {
|
||||
if (newBlock.nextConnection.isConnected()) {
|
||||
newBlock = newBlock.getNextBlock();
|
||||
var nextBlock = newBlock.getNextBlock();
|
||||
if (nextBlock && !nextBlock.isShadow()) {
|
||||
newBlock = nextBlock;
|
||||
} else {
|
||||
if (orphanBlock.previousConnection.checkType_(
|
||||
newBlock.nextConnection)) {
|
||||
|
||||
@@ -161,7 +161,7 @@ h1 {
|
||||
</xml>
|
||||
|
||||
<xml id="toolbox-categories" style="display: none">
|
||||
<category name="Logic" colour="210">
|
||||
<category name="Logic" colour="210">
|
||||
<block type="controls_if"></block>
|
||||
<block type="logic_compare"></block>
|
||||
<block type="logic_operation"></block>
|
||||
|
||||
Reference in New Issue
Block a user