mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2024-12-23 06:23:37 -05:00
add comment on hideFromPalette
This commit is contained in:
parent
d6e7ede03a
commit
61a0739950
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue