ID 481447 - NetworkMaterialEdit: Deleted shading nodes leave stale references in the material attributes and promoted parameters

Follow

Problem summary
Deleting shading nodes inside a NetworkMaterialEdit leaves stale references to deleted nodes in the material attributes.

Promoted parameters are still shown in the Node Parameters tab. 
When using a namePrefix, the promoted parameter is still shown in the Material Interface tab.

Customer reported version
katana.4.0v4

Customer reported platform
centos7

Steps to reproduce

1)  Create an 3Delight shading network in a NetworkMaterialCreate node that is: dlTexture (outColor) -> (Base.Color) dlStandard (outColor) -> Output Terminal (dlSurface)

2) In the dlTexture node, promote the Texture File parameter as "myFilename".

3) In the dlTexture node, add a namePrefix of "namePrefix" in the publicInterface parameters.

4) Attach a NetworkMaterialEdit node downstream and set the sceneGraphLocation parameter to the NetworkMaterial (/root/materials/NetworkMaterial)

5) In the NetworkMaterialEdit context, delete the dlTexture node.

6) Set the edit and view flag on the NetworkMaterialEdit node and expand the scene graph.

Expected behavior

  • The material.nodes attribute should not have deleted nodes.
  • The material.interface attribute should not have promoted parameters of deleted nodes.
  • The material.layout attribute should not have deleted nodes.
  • Node Parameters tab should not have promoted parameters of deleted nodes.. 
  • Material Interface tab should not have promoted parameters of deleted nodes.. 

Actual behavior
  • The material.nodes attribute has the dlTexture node.
  • The material.interface attribute has myFilename promoted parameter.
  • The material.layout attribute has the dlTexture node
  • Node Parameters tab has myFilename promoted parameter. 
  • Material Interface tab has myFilename promoted parameter.

Workaround
Unknown.

Reproduced by support
Katana 4.0v4 - CentOS 7
Katana 4.0v1 - CentOS 7
Katana 3.6v4 - CentOS 7
Katana 3.6v1 - CentOS 7

Earliest version tested
Katana 3.6v1 - NetworkMaterialEdit did not exist before this version

    We're sorry to hear that

    Please tell us why