*** empty log message ***

This commit is contained in:
David Rose 2001-03-08 01:07:32 +00:00
parent 942e5da169
commit abbd4a8e2b
3 changed files with 15 additions and 0 deletions

View File

@ -308,6 +308,14 @@ fillin(DatagramIterator& scan, BamReader* manager)
if (manager->get_file_minor_ver() < 1) {
chan_cat.error()
<< "Cannot read old-style quantized channels.\n";
clear_all_tables();
return;
}
if (!read_compressed) {
chan_cat.info()
<< "Not reading compressed animation channels.\n";
clear_all_tables();
return;
}

View File

@ -56,6 +56,12 @@ bool compress_channels = config_chan.GetBool("compress-channels", false);
//
int compress_chan_quality = config_chan.GetInt("compress-chan-quality", 95);
// Set this false to disable reading of compressed animation channels,
// even if the decompression code is available. The only reason you
// might want to do this would be to speed load time when you don't
// care about what the animation looks like.
bool read_compressed = config_chan.GetBool("read-compressed", true);
ConfigureFn(config_chan) {
AnimBundle::init_type();
AnimBundleNode::init_type();

View File

@ -14,5 +14,6 @@ NotifyCategoryDecl(chan, EXPCL_PANDA, EXPTP_PANDA);
EXPCL_PANDA extern bool compress_channels;
EXPCL_PANDA extern int compress_chan_quality;
EXPCL_PANDA extern bool read_compressed;
#endif