Skip to content

Commit bcc8f78

Browse files
committed
Pass current editing target to getBlocksXML
1 parent f425b27 commit bcc8f78

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)