瀏覽代碼

Fix bug in last commit.

While the last commit prevented a race condition, it also broke the
`updateOnce` function.
pull/1140/head
Matthew Petroff 1 年之前
父節點
當前提交
3d271c83d5
共有 1 個檔案被更改,包括 4 行新增1 行删除
  1. +4
    -1
      src/js/pannellum.js

+ 4
- 1
src/js/pannellum.js 查看文件

@@ -3075,7 +3075,10 @@ this.setUpdate = function(bool) {
*/
this.updateOnce = function() {
updateOnce = true;
this.setUpdate(true);
if (renderer === undefined)
onImageLoad();
else
animateInit();
return this;
};



Loading…
取消
儲存