-
Notifications
You must be signed in to change notification settings - Fork 358
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improvements to support locale, units and additional tests. #892
Improvements to support locale, units and additional tests. #892
Conversation
ashwinbhat
commented
Mar 29, 2022
•
edited
Loading
edited
- Add utilities
- UnitConverterRegistry::convertToUnit
- hasNamespace
- joinStrings
- Use C Locale for string stream operations. (for Multi-language and region support autodesk-forks/MaterialX#1183)
- Add tests for unit and locale content.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks promising, and I've written up a few initial thoughts below.
1fae076
to
665459b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This changelist is definitely starting to come together, though I had some questions below about Document::addNodeDefFromGraph and its role in MaterialXCore.
- Update Document::addNodeDefFromGraph to support Namespaces - Add utilities - UnitConverterRegistry::convertToUnit - isValidNamespace - joinstring - Use C Locale for string stream operations. - Add tests for flatten, Namespaces, unit and locale content.
Minor updates to tests and remove unused headers.
1d6bc3a
to
6ea8d33
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good to me, thanks @ashwinbhat!
Thanks @jstone-lucasfilm for fixing it up. Appreciate it! |
- Add utilities UnitConverterRegistry::convertToUnit and MaterialX::joinStrings. - Use C Locale for string stream operations (autodesk-forks#1183). - Add tests for unit and locale content.