Browse Source

minor fixes

David Rose 17 years ago
parent
commit
9c8cfa3f2f
2 changed files with 4 additions and 2 deletions
  1. 2 1
      panda/src/chan/animControl.cxx
  2. 2 1
      panda/src/chan/animPreloadTable.cxx

+ 2 - 1
panda/src/chan/animControl.cxx

@@ -34,7 +34,8 @@ TypeHandle AnimControl::_type_handle;
 AnimControl::
 AnimControl(const string &name, PartBundle *part, 
             double frame_rate, int num_frames) :
-  Namable(name)
+  Namable(name),
+  _bound_joints(BitArray::all_on())
 {
 #ifdef DO_MEMORY_USAGE
   MemoryUsage::update_type(this, get_class_type());

+ 2 - 1
panda/src/chan/animPreloadTable.cxx

@@ -150,6 +150,7 @@ add_anims_from(const AnimPreloadTable *other) {
 ////////////////////////////////////////////////////////////////////
 void AnimPreloadTable::
 output(ostream &out) const {
+  consider_sort();
   out << "AnimPreloadTable, " << _anims.size() << " animation records.";
 }
 
@@ -160,9 +161,9 @@ output(ostream &out) const {
 ////////////////////////////////////////////////////////////////////
 void AnimPreloadTable::
 write(ostream &out, int indent_level) const {
+  consider_sort();
   indent(out, indent_level)
     << "AnimPreloadTable, " << _anims.size() << " animation records:\n";
-  consider_sort();
   Anims::const_iterator ai;
   for (ai = _anims.begin(); ai != _anims.end(); ++ai) {
     const AnimRecord &record = (*ai);