Skip to content
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

[usdMaya] fix bogus name clash errors when stripping namespaces #683

Merged
merged 1 commit into from
Jan 14, 2019

Conversation

sopvop
Copy link
Contributor

@sopvop sopvop commented Nov 1, 2018

When exporter strips namespaces is checks if path was already visited and if so raises an error.

However when we also merge transforms and shapes, then it's not an error to map both of them to same primitive.

Description of Change(s)

In addition to checking if path was already visited we check if path is parent or child of visited path.

Fixes Issue(s)

Exporting to usd with namespace stripping and merging transforms and shapes results in error and does not work.

// Error: Multiple dag nodes map to the same prim path after stripping namespaces: |foo|ns:bar - |foo|ns:barShape  -- Runtime Error in _BeginWriting at line 396 of /tmp/source/third_party/maya/lib/usdMaya/writeJob.cpp //

@sopvop
Copy link
Contributor Author

sopvop commented Nov 1, 2018

The way it is implemented will miss error message. Will push update tomorrow.

When exporter strips namespaces is checks if path was already visited
and if so raises an error.

However when we also merge transforms and shapes, then it's not an
error to map bot of them to same primitive.
@sopvop
Copy link
Contributor Author

sopvop commented Nov 2, 2018

Now it's ready for review.

@jtran56
Copy link

jtran56 commented Nov 2, 2018

Filed as internal issue #USD-4891.

@pixar-oss pixar-oss merged commit 2c8be51 into PixarAnimationStudios:dev Jan 14, 2019
pixar-oss added a commit that referenced this pull request Jan 14, 2019
[usdMaya] fix bogus name clash errors when stripping namespaces

(Internal change: 1928402)
AdamFelt pushed a commit to autodesk-forks/USD that referenced this pull request Apr 16, 2024
### Description of Change(s)
Remove the GenericText parameter when create TextRun. And change the parameter of _AccumulateTextRun from CommonTextRun& to CommonTextRunList::iterator.
### Fixes Issue(s)
-

<!--
Please follow the Contributing and Building guidelines to run tests against your
change. Place an X in the box if tests are run and are all tests passing.
-->
- [ ] I have verified that all unit tests pass with the proposed changes
<!--
Place an X in the box if you have submitted a signed Contributor License Agreement.
A signed CLA must be received before pull requests can be merged.
For instructions, see: http://openusd.org/release/contributing_to_usd.html
-->
- [ ] I have submitted a signed Contributor License Agreement

(cherry picked from commit 9ff3c9984a511e450e54d5062e9c597baad252ec)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants