mirror of
https://github.com/scratchfoundation/scratch-sb1-converter.git
synced 2024-11-28 02:25:43 -05:00
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:
commit
89ec324122
1 changed files with 4 additions and 1 deletions
|
@ -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()
|
||||
};
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue