WorldWideTelescope / wwt-windows-client

WorldWide Telescope Windows Application
Other
179 stars 55 forks source link

Mark layers as dirty when their reference frame's mean radius changes #205

Closed Carifio24 closed 2 years ago

Carifio24 commented 2 years ago

Currently, when a reference frame's mean radius is updated, its layers are not redrawn. This seems to be one of the causes of the problem in #198. While the distance of the points from the center is modified appropriately, the positions of points in some layers depend on the frame's mean radius in a non-linear fashion. These layers will thus display incorrectly until another action (such as closing the layer properties window) marks the layer as "dirty". This PR fixes this issue by marking each of a reference frame's layers as dirty when the frame's mean radius is updated in the UI.

I think there are two points worth mentioning here: