Skip to content
Snippets Groups Projects
Commit bd991018 authored by Ray Schamp's avatar Ray Schamp
Browse files

Sprites always have costume data now

parent 52562376
No related branches found
No related tags found
No related merge requests found
......@@ -17,8 +17,6 @@ const SpriteSelectorComponent = function (props) {
{...componentProps}
>
{Object.keys(sprites)
// Only render ready sprites
.filter(id => 'costume' in sprites[id] && 'order' in sprites[id])
// Re-order by list order
.sort((id1, id2) => sprites[id1].order - sprites[id2].order)
.map(id => (
......
......@@ -50,7 +50,7 @@ const TargetPane = function (props) {
backdropCount={stage.costumeCount}
id={stage.id}
selected={stage.id === editingTarget}
url={stage.costume && stage.costume.skin}
url={stage.costume.skin}
onSelect={onSelectSprite}
/>
<p className={styles.targetPaneLibraryButtons}>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment