ExoticMatter/Naiad-Buddies — pull request #1 by crazyswagger (2012-01-18 16:12:39+00:00)
Title: constBody function call changed to cloneBody, and work-around for segfaults with multiple Nb::begin() calls

Hi

We ran into two issues with emp2geo for Naiad 0.6.0.68. The bundled version had an undefined symbol for the cloneBody function in Nb::EmpReader and we had some segmentation faults relating to multiple calls to Nb::begin(). I opened a ticket for this on the Exotic Matter support site as well. This pull request contains fixes for Naiad Buddy for Houdini for these issues:

Changed constBody function call to cloneBody in loadEmpBodies. I'm not sure if this would require me to delete the Body instance when we're done with it, for now it isn't deleted.

Moved the Nb::begin(), Nb::end() function calls from loadEmpBodies and saveEmpBodies to saveGeo and saveEmp to work around the issue of multiple calls to Nb::begin() causing segmentation faults.