mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
fix crash on exit
This commit is contained in:
parent
ce4e89c475
commit
c4b11604ec
@ -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;
|
||||
}
|
||||
*/
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
|
@ -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";
|
||||
|
Loading…
x
Reference in New Issue
Block a user