From c2d4ddaaabd5829ca090d0b01be70edc3e5ab034 Mon Sep 17 00:00:00 2001 From: Carifio24 Date: Tue, 30 Jan 2024 16:42:08 -0500 Subject: [PATCH] Explicitly update Moon Place location during mounted hook. --- src/SolarEclipse2024.vue | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/SolarEclipse2024.vue b/src/SolarEclipse2024.vue index 07d51ec1..105acc57 100644 --- a/src/SolarEclipse2024.vue +++ b/src/SolarEclipse2024.vue @@ -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();