mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-07-12 22:14:07 -04:00
Merge pull request #953 from ericrosenbaum/bugfix/load-tempo-from-sb2
Load tempo from sb2
This commit is contained in:
commit
5d658b5ecb
4 changed files with 25 additions and 13 deletions
src/serialization
|
@ -320,6 +320,9 @@ const parseScratchObject = function (object, runtime, extensions, topLevel) {
|
|||
target.rotationStyle = RenderedTarget.ROTATION_STYLE_ALL_AROUND;
|
||||
}
|
||||
}
|
||||
if (object.hasOwnProperty('tempoBPM')) {
|
||||
target.tempo = object.tempoBPM;
|
||||
}
|
||||
|
||||
target.isStage = topLevel;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue