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

Fix MaterialX code generation #1696

Merged
merged 1 commit into from
Sep 16, 2021
Merged

Fix MaterialX code generation #1696

merged 1 commit into from
Sep 16, 2021

Conversation

JGamache-autodesk
Copy link
Collaborator

Also fix MStringArray not being 100% STL compatible for VS 2019.

Also fix MStringArray not being 100% STL compatible for VS 2019.
@@ -313,8 +302,7 @@ bool isAGatewayType(const std::string& mayaNodeType)
cmd.format("nodeType -inherited -isTypeName ^1s", mayaNodeType.c_str());
if (MS::kSuccess == MGlobal::executeCommand(cmd, inherited)) {
MString gatewayNodeType(ProxyShapeHandler::gatewayNodeType().c_str());
auto iter2 = std::find(inherited.begin(), inherited.end(), gatewayNodeType);
isInherited = (iter2 != inherited.end());
isInherited = inherited.indexOf(gatewayNodeType) != -1;
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Fails with VS2019 because of missing type traits "value_type" and "reference".

@JGamache-autodesk JGamache-autodesk added build Related to building maya-usd repository vp2renderdelegate Related to VP2RenderDelegate labels Sep 13, 2021
@JGamache-autodesk JGamache-autodesk added the ready-for-merge Development process is finished, PR is ready for merge label Sep 16, 2021
@kxl-adsk kxl-adsk merged commit 1ce152e into dev Sep 16, 2021
@kxl-adsk kxl-adsk deleted the t_gamaj/materialx_fix branch September 16, 2021 14:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build Related to building maya-usd repository ready-for-merge Development process is finished, PR is ready for merge vp2renderdelegate Related to VP2RenderDelegate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants