Strange crash on a single file with Open Maya editting normals

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I've been making a few scripts to fiddle with maya's meshes in a way more convenient than the standard tools for a few specific cases. I've usually chosen the Open Maya API since it reads and writes more cleanly than standard Cmds commands.
The lastest script, included in the zip as NewScript, I've written seem to reliable crash on 1 of my test files that had another on of my scripts run on it.
In the attached zip I've included the crash log and hopefully related dumps (copied everything from the time of crash)
The crash log seems to point to the bottom half of the split cube in ModNormTest failing to run a getNormalIndices() on it's MeshVertexIterator.
The only thing that is out of the ordinary in this file is that I've run a different script before which I included in the zip as PreScript.
the goal of PreScript is to make normal point away from a given point. The goal of NewScript is to average the edge vertex normals of 2 meshes OR copy the edge normals from one mesh to another. The or depends on the isAverage boolean.
I'm really unclear what I did wrong in either the scene or the scripts. My current suspicion is that I created an edge case the API can't handle or that I'm missing a finalizing method for my normal edits.