浏览代码

Allow hot spots to be added before panorama is loaded (fixes #432).

pull/452/head
Matthew Petroff 7 年前
父节点
当前提交
0dda044374
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. +2
    -1
      src/js/pannellum.js

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

@@ -2667,7 +2667,8 @@ this.addHotSpot = function(hs, sceneId) {
if (sceneId === undefined || config.scene == sceneId) {
// Add to current scene
createHotSpot(hs);
renderHotSpot(hs);
if (loaded)
renderHotSpot(hs);
}
return this;
}


正在加载...
取消
保存