Skip to content

Commit

Permalink
Skip odometry rendering before image loaded
Browse files Browse the repository at this point in the history
  • Loading branch information
jwbonner committed Oct 5, 2024
1 parent eff3bb9 commit 4e8a9cb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/shared/renderers/OdometryRenderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ export default class OdometryRenderer implements TabRenderer {
this.lastImageSource = gameData.path;
this.IMAGE.src = gameData.path;
}
if (!(this.IMAGE.width > 0 && this.IMAGE.height > 0)) return;

// Determine if objects are flipped
let objectsFlipped = command.origin === "red";
Expand Down

0 comments on commit 4e8a9cb

Please sign in to comment.