Browse Source

fix a problem where animation and character data wasn't getting cleared between sessions

Chris Brunner 16 years ago
parent
commit
deaa391103
1 changed files with 6 additions and 3 deletions
  1. 6 3
      pandatool/src/mayaprogs/mayaToEgg_server.cxx

+ 6 - 3
pandatool/src/mayaprogs/mayaToEgg_server.cxx

@@ -191,6 +191,9 @@ MayaToEggServer::
 ////////////////////////////////////////////////////////////////////
 void MayaToEggServer::
 run() {
+  // Make sure we have good clean data to start with
+  _data = new EggData();
+
   // Set the verbose level by using Notify.
   if (_verbose >= 3) {
     maya_cat->set_severity(NS_spam);
@@ -210,9 +213,6 @@ run() {
     _output_filename.make_absolute();
   }
 
-  // Make sure we have good clean data to start with
-  _data = new EggData();
-
   // So our relative path names come out correctly
   _path_replace->_path_directory = get_output_filename().get_dirname();
 
@@ -296,6 +296,9 @@ run() {
   _ignore_sliders.clear();
   _force_joints.clear();
   _data->clear();
+  _animation_convert = AC_none;
+  _character_name = "";
+  dummy->clear();
 
 }