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

[usdShade] Doc change only- Apply MaterialBindingAPI in Bind() example #2726

Conversation

asluk
Copy link
Collaborator

@asluk asluk commented Oct 5, 2023

See https://groups.google.com/g/usd-interest/c/auBpX7xCQSQ/m/iUeFlJrSAQAJ

  • I have verified that all unit tests pass with the proposed changes
  • I have submitted a signed Contributor License Agreement

@tallytalwar
Copy link
Contributor

Oops nice find. I thought I covered it extensively :D.

@@ -917,8 +917,8 @@ class UsdShadeMaterialBindingAPI : public UsdAPISchemaBase
/// "metalSubset", metalFaces);
///
/// // Bind materials to the created geom-subsets.
/// UsdShadeMaterialBindingAPI(pasticSubset.GetPrim()).Bind(plastic)
/// UsdShadeMaterialBindingAPI(metalSubset.GetPrim()).Bind(metal)
/// UsdShadeMaterialBindingAPI::Apply(pasticSubset.GetPrim()).Bind(plastic)
Copy link
Contributor

Choose a reason for hiding this comment

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

While you are here @asluk, can you also fix the typo here? s/pasticSubset/plasticSubset/

Copy link
Contributor

Choose a reason for hiding this comment

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

Also on line 913 above, there is no concept as UsdGeomMaterialBindingAPI, it should be UsdShadeMaterialBindingAPI, probably also a typo.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

done-- thanks!

@asluk asluk force-pushed the tweak-usdshadematbind-example branch from e2624dd to 65b8b73 Compare October 5, 2023 23:17
@asluk asluk force-pushed the tweak-usdshadematbind-example branch from 65b8b73 to 498e81b Compare October 5, 2023 23:18
@jesschimein
Copy link
Contributor

Filed as internal issue #USD-8817

@pixar-oss pixar-oss merged commit e14e6d1 into PixarAnimationStudios:dev Nov 1, 2023
5 checks passed
@asluk asluk deleted the tweak-usdshadematbind-example branch November 1, 2023 23:47
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