Skip to content

Commit

Permalink
Explicitly update Moon Place location during mounted hook.
Browse files Browse the repository at this point in the history
  • Loading branch information
Carifio24 committed Jan 30, 2024
1 parent 55351d0 commit c2d4dda
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 @@ -1774,6 +1774,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 c2d4dda

Please sign in to comment.