Skip to content

Commit b2dd3ed

Browse files
committed
Default blocks to last asset instead of first
1 parent 5c1b806 commit b2dd3ed

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/containers/blocks.jsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -340,9 +340,9 @@ class Blocks extends React.Component {
340340
const targetSounds = target.getSounds();
341341
const dynamicBlocksXML = this.props.vm.runtime.getBlocksXML();
342342
return makeToolboxXML(target.isStage, target.id, dynamicBlocksXML,
343-
targetCostumes[0].name,
344-
stageCostumes[0].name,
345-
targetSounds.length > 0 ? targetSounds[0].name : ''
343+
targetCostumes[targetCostumes.length - 1].name,
344+
stageCostumes[stageCostumes.length - 1].name,
345+
targetSounds.length > 0 ? targetSounds[targetSounds.length - 1].name : ''
346346
);
347347
} catch {
348348
return null;

0 commit comments

Comments
 (0)