Skip to content

Commit 7d0c773

Browse files
yaustarSteven Yau
andauthored
[FIX] Removed Basis URL from cache after transcode (playcanvas#2070)
Fixes a bug where after the basis is unloaded, it doesn't perform the transcode on the next asset load Co-authored-by: Steven Yau <syau@snaphcat.com>
1 parent a6741da commit 7d0c773

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/resources/basis.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -323,6 +323,8 @@ Object.assign(pc, function () {
323323
for (i = 0; i < callback.length; ++i) {
324324
(callback[i])(null, data);
325325
}
326+
327+
delete callbacks[url];
326328
};
327329

328330
// post a transcode job to the web worker

0 commit comments

Comments
 (0)