File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -165,7 +165,7 @@ Blockly.ScratchBlocks.ProcedureUtils.updateDisplay_ = function() {
165165 var wasRendered = this . rendered ;
166166
167167 if ( this . procCode_ === "" ) this . procCode_ = "unnamed block" ;
168- // @todo add statement check?
168+
169169 var ConectionType = ( this . outputType || ( this . output_ ? 'string' : 'statement' ) ) . toLowerCase ( ) ;
170170 this . rendered = false ;
171171
@@ -217,6 +217,9 @@ Blockly.ScratchBlocks.ProcedureUtils.updateDisplay_ = function() {
217217
218218 this . rendered = wasRendered ;
219219 if ( wasRendered && ! this . isInsertionMarker ( ) ) {
220+ if ( this . type === "procedures_declaration" ) {
221+ for ( var child of this . childBlocks_ ) child . updateColour ( ) ;
222+ }
220223 this . initSvg ( ) ;
221224 this . render ( ) ;
222225 }
You can’t perform that action at this time.
0 commit comments