Merge pull request #29 from kchadha/fix-sprite-z-index

fix: reverse order of stage's children to reflect sb2 z-index
This commit is contained in:
Karishma Chadha 2018-12-21 14:17:58 -05:00 committed by GitHub
commit 89ec324122
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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