Skip to content

Conversation

bradleyhenke
Copy link
Contributor

@bradleyhenke bradleyhenke commented Jan 30, 2020

General Description

Fixes a bug in which indexed normals are not correctly added to maya meshes.
Maya expects fully expanded face varying normals when using the function
MFnMesh::setFaceVertexNormals.

Related Issues

  • Fixes a failing ParameterisedHolder unit test

Checklist

  • I have read the contribution guidelines.
  • I have updated the documentation, if applicable.
  • I have tested my change(s) in the test suite, and added new test cases where necessary.
  • My code follows the Cortex project's prevailing coding style and conventions.
  • If my code made breaking changes, I applied the pr-majorVersion label to this PR.

Fixes a bug in which indexed normals are not correctly added to maya meshes.
Maya expects fully expanded face varying normals when using the function
`MFnMesh::setFaceVertexNormals`.
The test was failing for two reasons:
1. The meshMerge op could not be found
2. `IECoreScene::MeshPrimitive::createBox` uses indexed normals.
   However, ToMayaMeshConverter was not correctly converting them,
   and then when the scene was reloaded maya was automatically
   recalculating them.
@andrewkaufman andrewkaufman merged commit 0449a24 into ImageEngine:master Jan 30, 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.

2 participants