fix: reverse order of stage's children to reflect sb2 z-index

fixes #5
This commit is contained in:
Karishma Chadha 2018-12-21 10:37:11 -05:00
parent a08e8a1385
commit 7796ae2a65

View file

@ -203,7 +203,10 @@ const toSb2Json = root => {
penLayerID: 0,
tempoBPM: _stageData.tempoBPM,
videoAlpha: 0.5,
children: _stageData.stageContents.map(toSb2JsonChild).filter(Boolean)
children: _stageData.stageContents
.map(toSb2JsonChild)
.filter(Boolean)
.reverse()
};
};