Skip to content

Commit

Permalink
Fix for #558 and #559 reset scene dimensions when changing background…
Browse files Browse the repository at this point in the history
… image
  • Loading branch information
chrismaltby committed Sep 25, 2020
1 parent 84a836f commit 251c0df
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/store/features/entities/entitiesState.ts
Original file line number Diff line number Diff line change
Expand Up @@ -638,6 +638,9 @@ const editScene: CaseReducer<
}
}

patch.width = background.width;
patch.height = background.height;

scene.actors.forEach((actorId) => {
const actor = actors[actorId];
if (actor) {
Expand Down

0 comments on commit 251c0df

Please sign in to comment.