Skip to content

Commit 12d72f1

Browse files
authored
Merge pull request scratchfoundation#5826 from adroitwhiz/filter-extension-blocks
Pass current editing target to getBlocksXML
2 parents 5a714e7 + bcc8f78 commit 12d72f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/containers/blocks.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ class Blocks extends React.Component {
338338
const stageCostumes = stage.getCostumes();
339339
const targetCostumes = target.getCostumes();
340340
const targetSounds = target.getSounds();
341-
const dynamicBlocksXML = this.props.vm.runtime.getBlocksXML();
341+
const dynamicBlocksXML = this.props.vm.runtime.getBlocksXML(target);
342342
return makeToolboxXML(target.isStage, target.id, dynamicBlocksXML,
343343
targetCostumes[targetCostumes.length - 1].name,
344344
stageCostumes[stageCostumes.length - 1].name,

0 commit comments

Comments
 (0)