Helioviewer-Project / JHelioviewer-SWHV

Space Weather JHelioviewer ☉
https://swhv.oma.be
Mozilla Public License 2.0
49 stars 16 forks source link

'dragRotation' is not loaded when loading a state file #284

Open lukasvin opened 3 months ago

lukasvin commented 3 months ago

When loading a state file, the 'dragRotation' property is reset.

steps to reproduce:

  1. add any image layer
  2. drag the sun and rotate it into any non-default position
  3. save the state
  4. load the saved state

The dragged rotation is reset to the default position [1,0,0,0].

bogdanni commented 3 months ago

Restoring state involves resetting the viewpoint which leads to reset of "dragRotation". I need to see why the last step was necessary, thanks.