Problem summary
When ViewerObjectSettings are changed on an object’s parent location, the change is not always applied to on children in the Viewer, even though the new value is shown in the child’s Attributes tab.
For some attributes, such as viewer.default.drawOptions.color or viewer.default.pickable, the Scene Graph needs to collapsed and re-expanded for the change to take effect.
When other viewer.default.drawOptions attributes like “hide”, “fill” or “point size” are changed on a parent location, this is updated immediately for a child that is displayed in the Viewer.
Steps to reproduce
-
Add a TeapotCreate and node to the Katana Node Graph and and change the node name to /root/world/geo/primitive/teapot/teapotShape.
-
Add a ViewerObjectSettings node and add the CEL statement /root/world/geo/primitive to it.
-
Set the “pickable” attribute to No.
-
Select teapotShape in the Scene Graph and note that in the Attibutes tab, viewer.pickable is set to No.
-
Select the teapot in the Viewer. It is still selectable.
-
Collapse the Scene Graph at primitive and re-expand it.
-
Try to select the teapot in the Viewer. It is no longer selectable.
Reproduced by support
Reproduced in 1.6v3, 2.0v5, 2.1v1&4, 2.5v1&3 RHEL 6.6
2.5v3 on Windows 7
Expected behaviour
All changes to ViewerObjectSettings on parent locations should be passed through to child locations immediately without the need to collapse and expand the Scene Graph/