Skip to content

Commit 3035ecb

Browse files
[FIX] Allow compressed scene data to be reloaded (playcanvas#3210)
Co-authored-by: zachppaul <zachppaul@gmail.com>
1 parent b677bd5 commit 3035ecb

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/resources/parser/scene.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ class SceneParser {
1515
let parent = null;
1616

1717
const compressed = data.compressedFormat;
18-
if (compressed) {
18+
if (compressed && !data.entDecompressed) {
19+
data.entDecompressed = true;
1920
data.entities = new Decompress(data.entities, compressed).run();
2021
}
2122

@@ -44,8 +45,6 @@ class SceneParser {
4445

4546
this._openComponentData(parent, data.entities);
4647

47-
delete data.compressedFormat;
48-
4948
return parent;
5049
}
5150

0 commit comments

Comments
 (0)