Skip to content

Commit

Permalink
Merge pull request #24 from Carifio24/initial-moon-sprite
Browse files Browse the repository at this point in the history
Use correct initial Moon sprite
  • Loading branch information
patudom authored Jan 30, 2024
2 parents 36a8f0b + c2d4dda commit 8a1dca4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/SolarEclipse2024.vue
Original file line number Diff line number Diff line change
Expand Up @@ -1782,6 +1782,10 @@ export default defineComponent({
this.setForegroundImageByName("Digitized Sky Survey (Color)");
// this.setBackgroundImageByName("Black Sky Background");
this.setForegroundOpacity(100);
// The initial Moon position is incorrect, and we use it to set the Moon sprite.
// Thus, we explicitly call for an update here.
this.moonPlace.updatePlanetLocation(this.wwtCurrentTime.getTime());
this.updateMoonTexture(true);
this.updateWWTLocation();
Expand Down

0 comments on commit 8a1dca4

Please sign in to comment.