Set VM options when project load, not VM init

This commit is contained in:
Thomas Weber committed 2021-03-07 09:34:46 -06:00
1 parent 6a87b4548b
commit e58d90793d
1 file changed
+2 -2
+2 -2
View File
@@ -268,13 +268,13 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
username: ${stringify(this.options.username)},
handleVmInit: function (_vm) {
vm = _vm;
},
handleProjectLoaded: function () {
vm.setCompilerOptions(${stringify(this.options.compilerOptions)});
vm.setFramerate(${stringify(this.options.framerate)});
if (${stringify(this.options.highQualityPen)}) vm.renderer.setUseHighQualityRender(true);
if (${stringify(this.options.turbo)}) vm.setTurboMode(true);
if (${stringify(this.options.interpolation)}) vm.setInterpolation(true);
},
handleProjectLoaded: function () {
if (${stringify(this.options.autoplay)}) { vm.start(); vm.greenFlag(); }
},
stageWidth: ${stringify(this.options.stageSize.width)},