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:
As far as I can tell, the mean radius is the only property that affects layer display in this way, so the added piece of code only checks the layer's mean radius to avoid any unnecessary re-draws.
I debated walking through the tree of child reference frames and flagging their layers as well, but I couldn't find any dependence on parent reference frames inside of layers, so I don't think this is necessary.
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: