#1558 adjusted how elements visibility change works.
When changing elements visibility, all of the child elements get put into always/never drawn sets. This should be adjusted to put only those child elements whose category visibility does not match element what the change expects.
E.g. The following hierarchy:
- element (category1)
- child element (category2)
category2 is visible and category1 is hidden.
Requesting to change element visibility puts it and child element into always drawn set. But child element does not need to be put into always drawn set, since its category is already visible.
#1558 adjusted how elements visibility change works.
When changing elements visibility, all of the child elements get put into always/never drawn sets. This should be adjusted to put only those child elements whose category visibility does not match element what the change expects.
E.g. The following hierarchy:
category2 is visible and category1 is hidden.
Requesting to change element visibility puts it and child element into always drawn set. But child element does not need to be put into always drawn set, since its category is already visible.