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

remove hard-coded "pxr" namespace in favor of PXR_NS in baseExportCommand #540

Merged

Conversation

mattyjams
Copy link
Contributor

This is a small follow-up fix to #398 and accounts for the case when PXR_USE_NAMESPACES is disabled (which is how Pixar currently builds internally) or when USD is built with anything other than "pxr" as the namespace.

@kxl-adsk kxl-adsk requested a review from fowlertADSK May 29, 2020 21:35
@kxl-adsk kxl-adsk added the import-export Related to Import and/or Export label May 29, 2020
Copy link
Contributor

@fowlertADSK fowlertADSK left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thx for the fix.

Is there something we should change in our build setup in order to catch this kind of problem? Don't think I've ever heard of anyone not using "pxr" or disabling namespaces

@mattyjams
Copy link
Contributor Author

Looks good, thx for the fix.

Is there something we should change in our build setup in order to catch this kind of problem? Don't think I've ever heard of anyone not using "pxr" or disabling namespaces

Yeah, we got pretty far down the road building stuff on top of USD before we added C++ namespacing to it, so our internal builds still don't use namespaces.

I'm not sure how we might be able to catch this. My best guess would be some kind of custom git pre-commit hook that does a simple search for hard-coded namespacing like pxr::.

@kxl-adsk kxl-adsk merged commit af5fbf8 into Autodesk:dev Jun 1, 2020
@mattyjams mattyjams deleted the pr/use_PXR_NS_in_baseExportCommand branch June 1, 2020 20:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
import-export Related to Import and/or Export
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants