mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 19:08:55 -04:00
minor fixes
This commit is contained in:
parent
4a0bf0d87b
commit
9c8cfa3f2f
@ -34,7 +34,8 @@ TypeHandle AnimControl::_type_handle;
|
|||||||
AnimControl::
|
AnimControl::
|
||||||
AnimControl(const string &name, PartBundle *part,
|
AnimControl(const string &name, PartBundle *part,
|
||||||
double frame_rate, int num_frames) :
|
double frame_rate, int num_frames) :
|
||||||
Namable(name)
|
Namable(name),
|
||||||
|
_bound_joints(BitArray::all_on())
|
||||||
{
|
{
|
||||||
#ifdef DO_MEMORY_USAGE
|
#ifdef DO_MEMORY_USAGE
|
||||||
MemoryUsage::update_type(this, get_class_type());
|
MemoryUsage::update_type(this, get_class_type());
|
||||||
|
@ -150,6 +150,7 @@ add_anims_from(const AnimPreloadTable *other) {
|
|||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
void AnimPreloadTable::
|
void AnimPreloadTable::
|
||||||
output(ostream &out) const {
|
output(ostream &out) const {
|
||||||
|
consider_sort();
|
||||||
out << "AnimPreloadTable, " << _anims.size() << " animation records.";
|
out << "AnimPreloadTable, " << _anims.size() << " animation records.";
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -160,9 +161,9 @@ output(ostream &out) const {
|
|||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
void AnimPreloadTable::
|
void AnimPreloadTable::
|
||||||
write(ostream &out, int indent_level) const {
|
write(ostream &out, int indent_level) const {
|
||||||
|
consider_sort();
|
||||||
indent(out, indent_level)
|
indent(out, indent_level)
|
||||||
<< "AnimPreloadTable, " << _anims.size() << " animation records:\n";
|
<< "AnimPreloadTable, " << _anims.size() << " animation records:\n";
|
||||||
consider_sort();
|
|
||||||
Anims::const_iterator ai;
|
Anims::const_iterator ai;
|
||||||
for (ai = _anims.begin(); ai != _anims.end(); ++ai) {
|
for (ai = _anims.begin(); ai != _anims.end(); ++ai) {
|
||||||
const AnimRecord &record = (*ai);
|
const AnimRecord &record = (*ai);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user