Display deprecation warning when writing FFT compressed anim chans
This commit is contained in:
parent
07d06d434c
commit
2c6a6c9f06
|
|
@ -327,10 +327,16 @@ void AnimChannelMatrixXfmTable::
|
|||
write_datagram(BamWriter *manager, Datagram &me) {
|
||||
AnimChannelMatrix::write_datagram(manager, me);
|
||||
|
||||
if (compress_channels && !FFTCompressor::is_compression_available()) {
|
||||
chan_cat.error()
|
||||
<< "Compression is not available; writing uncompressed channels.\n";
|
||||
compress_channels = false;
|
||||
if (compress_channels) {
|
||||
chan_cat.warning()
|
||||
<< "FFT compression of animations is deprecated. For compatibility "
|
||||
"with future versions of Panda3D, set compress-channels to false.\n";
|
||||
|
||||
if (!FFTCompressor::is_compression_available()) {
|
||||
chan_cat.error()
|
||||
<< "Compression is not available; writing uncompressed channels.\n";
|
||||
compress_channels = false;
|
||||
}
|
||||
}
|
||||
|
||||
me.add_bool(compress_channels);
|
||||
|
|
|
|||
|
|
@ -146,10 +146,16 @@ void AnimChannelScalarTable::
|
|||
write_datagram(BamWriter *manager, Datagram &me) {
|
||||
AnimChannelScalar::write_datagram(manager, me);
|
||||
|
||||
if (compress_channels && !FFTCompressor::is_compression_available()) {
|
||||
chan_cat.error()
|
||||
<< "Compression is not available; writing uncompressed channels.\n";
|
||||
compress_channels = false;
|
||||
if (compress_channels) {
|
||||
chan_cat.warning()
|
||||
<< "FFT compression of animations is deprecated. For compatibility "
|
||||
"with future versions of Panda3D, set compress-channels to false.\n";
|
||||
|
||||
if (!FFTCompressor::is_compression_available()) {
|
||||
chan_cat.error()
|
||||
<< "Compression is not available; writing uncompressed channels.\n";
|
||||
compress_channels = false;
|
||||
}
|
||||
}
|
||||
|
||||
me.add_bool(compress_channels);
|
||||
|
|
|
|||
Loading…
Reference in New Issue