瀏覽代碼

imporve the track controller #102

tags/2.14.0
Caven Chen 3 年之前
父節點
當前提交
f419500175
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3
    1
      modules/history-track/TrackController.js

+ 3
- 1
modules/history-track/TrackController.js 查看文件

@@ -212,7 +212,9 @@ class TrackController {
* @returns {TrackController}
*/
clear() {
this._cache = {}
Object.keys(this._cache).forEach(key => {
this.removeTrack(this._cache[key])
})
this._activedTrack && (this._activedTrack.viewed = false)
this._activedTrack = undefined
this._viewer.off(SceneEventType.POST_RENDER, this._onPostRender, this)

Loading…
取消
儲存