Rejigged shouldSave() logic. It was still allowing the saving of some mesh values which would crash maya. This was because the emptyMesh variable didn't have any primvars, whereas the value in the parameter might, causing it to compare as different to the empty mesh. Testing the parameter value for emptiness didn't seem right anyway, as it's not the parameter value maya is saving - it's the plug value. Switched to testing that the maya mesh in the plug has at least one polygon.
Rejigged shouldSave() logic. It was still allowing the saving of some mesh values which would crash maya. This was because the emptyMesh variable didn't have any primvars, whereas the value in the parameter might, causing it to compare as different to the empty mesh. Testing the parameter value for emptiness didn't seem right anyway, as it's not the parameter value maya is saving - it's the plug value. Switched to testing that the maya mesh in the plug has at least one polygon.

code-google-com/cortex-vfx,code-google-com/cortex-vfx,ruschelp/cortex-vfx,ruschelp/cortex-vfx,code-google-com/cortex-vfx,code-google-com/cortex-vfx,ruschelp/cortex-vfx