-
Notifications
You must be signed in to change notification settings - Fork 201
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
Conversation
…sformType, or falls back to standard transforms if that fails (Autodesk#1013)
@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; |
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.
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"); |
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.
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.
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.
looks good to me!
This is internal AL#1013