mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-29 08:15:18 -04:00
gobj: don't strip .bam textures that contain only a clear color
Second part of the fix for #844
This commit is contained in:
parent
e138096578
commit
707b4fb866
@ -9951,9 +9951,11 @@ do_write_datagram_header(CData *cdata, BamWriter *manager, Datagram &me, bool &h
|
|||||||
<< "Unsupported bam-texture-mode: " << (int)file_texture_mode << "\n";
|
<< "Unsupported bam-texture-mode: " << (int)file_texture_mode << "\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
if (filename.empty() && do_has_bam_rawdata(cdata)) {
|
if (filename.empty()) {
|
||||||
// If we don't have a filename, we have to store rawdata anyway.
|
if (do_has_bam_rawdata(cdata) || cdata->_has_clear_color) {
|
||||||
has_rawdata = true;
|
// If we don't have a filename, we have to store rawdata anyway.
|
||||||
|
has_rawdata = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
me.add_string(get_name());
|
me.add_string(get_name());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user