This may be a resolved issue that has been resurrected when updating layer view state through the LayerTable
. I converted the script discussed here into a compiled RhinoCommon plugin executed synchronously to demonstrate the issue.
layerStateTest.3dm (60.0 KB)
When Nested Layers Are Visible
Setting a nested layer visibility to off incorrectly sets the state to ‘half lite’:
- Test 1 & 2: Root layers update correctly.
- Test 3: Setting
layer.IsVisible = false
on nested layers incorrectly sets them to a ‘half lite’ state. - Test 4: You can click the ‘half lite’ icon and actually turn it off.
- Test 5: Nested2 is correctly set to ‘half lite’ before this test. Turning it off programmatically does nothing.
- Test 6: It’s more than a visual quirk.
Nested2
should be off, but it acts like a ‘half lite’ layer. When its parent (Nested1A
) is turned on,Nested2
also turns on.
When Nested Layers Are Collapsed
this is using the same Test 3 as above, only with the Root
layer collapsed
- Turn off
Nested1A
programmatically. The display updates correctly. - Re-rendering the viewport behaves as expected
- Expanding
Root
reveals thatNested1A
is on.Nested1A
should be off andNested2
should be ‘half lite’. - Re-rendering the viewport spontaneously turns the off layers back on.