minor fixes

This commit is contained in:
David Rose 2008-08-07 18:39:25 +00:00
parent 4a0bf0d87b
commit 9c8cfa3f2f
2 changed files with 4 additions and 2 deletions

View File

@ -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());

View File

@ -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);