Skip to content

Commit

Permalink
Editor: fixed room dirs not created when upgrading from old projects
Browse files Browse the repository at this point in the history
  • Loading branch information
ivan-mogilko committed Nov 4, 2024
1 parent e235690 commit 0c3d052
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Editor/AGS.Editor/Components/RoomsComponent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2397,6 +2397,9 @@ private IEnumerable<Task> ConvertRoomFromCrmToOpenFormat(UnloadedRoom unloadedRo
// Adjust all Interactions to have a new script module name
SyncInteractionScriptModules(room);

// Create a directory for this room
Directory.CreateDirectory(room.Directory);

for (int i = 0; i < room.BackgroundCount; i++)
yield return SaveAndDisposeBitmapAsync(nativeRoom.GetBackground(i), room.GetBackgroundFileName(i));

Expand Down

0 comments on commit 0c3d052

Please # to comment.