Skip to content

Commit bdebb67

Browse files
committed
fix: Write legacy data *after* cleaning binary blobs.
1 parent 2edbd55 commit bdebb67

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

VisualPinball.Unity/VisualPinball.Unity.Editor/Import/VpxSceneConverter.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,10 +148,11 @@ public GameObject Convert(bool applyPatch = true, string tableName = null)
148148
ExtractTextures();
149149
ExtractSounds();
150150
SaveData();
151-
SaveLegacyData();
152151

153152
var prefabLookup = InstantiateGameItems();
154153
var componentLookup = UpdateGameItems(prefabLookup);
154+
155+
SaveLegacyData(); // now we freed the binary data, write the remaining game items.
155156
FinalizeGameItems(componentLookup);
156157

157158
FreeTextures();

0 commit comments

Comments
 (0)