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

Improvements to USDGeomScope Functionality #232

Merged
merged 4 commits into from
Feb 4, 2020

Conversation

murphyeoin
Copy link
Contributor

  • File Import now tries to create maya nodes which have an al_usdmaya_transformType metadatum
  • fixed a bug in TransformationMatrix inheritance

This is internal AL#1013

@kxl-adsk
Copy link

@fowlertADSK, @pilarmolinalopez - since you have done the initial USDGeomScope review, I hope you don't mind if I send this one your way too.

AL_MAYA_CHECK_ERROR_RETURN_NULL_MOBJECT(status, "Dag node translator: unable t/o get attributes");
MObject to = fn.create(nodeType, parent, &status);
if (status!= MS::kSuccess) {
std::cerr << "DagNodeTranslator::createNode unable to create node of type " << nodeType << ". Create transform instead" << std::endl;
Copy link
Contributor

Choose a reason for hiding this comment

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

The only thing I’d probably change is use of std::cerr. The macros here are all using MGlobal::displayError/Warning/Info functions so maybe stick with one of those?

if(it == m_builders.end())
{
//If we can't find a specific translator, use the DagNodeTranslator
it = m_builders.find("dagNode");
Copy link
Contributor

Choose a reason for hiding this comment

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

I was going to ask if we need to check if it actually found this one but it looks like it’s added in the constructor and should always be there.

Copy link
Contributor

@pilarmolinalopez pilarmolinalopez 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 to me!

@murphyeoin murphyeoin changed the title Improvements to Improvements to USDGeomScope Functionality Improvements to USDGeomScope Functionality Feb 4, 2020
@kxl-adsk kxl-adsk merged commit 31e6f34 into Autodesk:dev Feb 4, 2020
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.

4 participants