SetLayerToObject - current in layer list

When SetLayerToObject is used on an object that resides on a sublayer that is collapsed, the parent layer that is visible in the layer panel doesn’t get painted black (bold typeface).

In the following image, the current layer is set to a sublayer of the “REFERENCE LAYER - TEMPLATE” layer at the bottom of the list.

image

Often [but not always :no_mouth:], switching to another application and then back to Rhino will paint the list correctly. Just expanding any layer in the list will also trigger correct painting.

image

While playing around with this for this bug report, I had an instance where a parent layer remained bold when I set another layer as current:
image

Yep, got that, thanks.

https://mcneel.myjetbrains.com/youtrack/issue/RH-41166

-Pascal

RH-41166 is fixed in the latest WIP