ID 485147 - Scene graph locations not correctly cleaned up before creating associated SdfPath

Follow

Problem summary:

Scene graph locations with - characters are not correctly sanitized before SdfPaths, that do not support the - character, are created.

Steps to reproduce:

  • Add a PrimitiveCreate node.
  • Change its name parameter to an expression parameter containing only the  '/root/world/geo/primitive-green' string.
  • Open a Viewer (Hydra) tab.
  • Expand the scene.

Expected behaviour:

No error is expected; the primitive should be seen in the viewer.

Actual behaviour:

  • In Katana 4.0:

[WARN plugins.HydraViewer.LoggerDelegate]: fnUSD/pxr/usd/lib/sdf/path.cpp: AppendChild: 761: Invalid prim name 'primitive-green'

Tested versions/platforms:

  • 3.6v5 - Unaffected
  • 4.0v1 - Affected

    We're sorry to hear that

    Please tell us why