From 61a0739950aba12d9841a7ac08086ab098bdd9ae Mon Sep 17 00:00:00 2001 From: adroitwhiz Date: Tue, 2 Jun 2020 16:29:49 -0400 Subject: [PATCH] add comment on hideFromPalette --- src/engine/runtime.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/engine/runtime.js b/src/engine/runtime.js index f088992e7..369c88f9a 100644 --- a/src/engine/runtime.js +++ b/src/engine/runtime.js @@ -1383,6 +1383,7 @@ class Runtime extends EventEmitter { target.isStage ? TargetType.STAGE : TargetType.SPRITE ); } + // If the block info's `hideFromPalette` is true, then filter out this block return blockFilterIncludesTarget && !block.info.hideFromPalette; });