diff --git a/pandatool/src/softegg/softNodeDesc.cxx b/pandatool/src/softegg/softNodeDesc.cxx index 2f372e9a6a..a8a0e39870 100755 --- a/pandatool/src/softegg/softNodeDesc.cxx +++ b/pandatool/src/softegg/softNodeDesc.cxx @@ -78,9 +78,16 @@ SoftNodeDesc(SoftNodeDesc *parent, const string &name) : //////////////////////////////////////////////////////////////////// SoftNodeDesc:: ~SoftNodeDesc() { + // I think it is a mistake to try to delete this. This was one + // member of an entire array allocated at once; you can't delete + // individual elements of an array. + + // Screw cleanup, anyway--we'll just let the array leak. + /* if (_model != (SAA_Elem *)NULL) { delete _model; } + */ } //////////////////////////////////////////////////////////////////// diff --git a/pandatool/src/softegg/softToEggConverter.cxx b/pandatool/src/softegg/softToEggConverter.cxx index 6de6eed35f..c43ca1de68 100755 --- a/pandatool/src/softegg/softToEggConverter.cxx +++ b/pandatool/src/softegg/softToEggConverter.cxx @@ -572,6 +572,7 @@ convert_file(const Filename &filename) { //////////////////////////////////////////////////////////////////// bool SoftToEggConverter:: convert_soft(bool from_selection) { + cerr <<" startup\n"; bool all_ok = true; _from_selection = from_selection; @@ -629,13 +630,18 @@ convert_soft(bool from_selection) { softegg_cat.info() << "Converted Softimage file\n"; // write out the egg model file + cerr << "writing egg file\n"; _egg_data->write_egg(output_filename); softegg_cat.info() << "Wrote Egg file " << output_filename << endl; + cerr <<" done\n"; } if (make_anim) { + cerr << "making anim\n"; if (!convert_char_chan()) { + cerr << "failed to convert char\n"; all_ok = false; } + cerr << "done convert_char_chan\n"; // reparent_decals(get_egg_data()); softegg_cat.info() << "Converted Softimage file\n";