autodesk-forks / MaterialX

MaterialX C++ and Python libraries
http://www.materialx.org/
Apache License 2.0
107 stars 23 forks source link

Fix regression of creating invalid name when create new definitions #1300

Closed bernardkwok closed 3 years ago

bernardkwok commented 3 years ago

Numbers such as "1.0" were being directly embedded into new definition and nodegraph names when create a new nodedef via the runtime.

Add in valid name checking on nodedef creation and for general unique name utility which is used when renaming a node (nodegraph in this case).