Skip to content

Commit 707b4fb

Browse files
committed
gobj: don't strip .bam textures that contain only a clear color
Second part of the fix for panda3d#844
1 parent e138096 commit 707b4fb

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

panda/src/gobj/texture.cxx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9951,9 +9951,11 @@ do_write_datagram_header(CData *cdata, BamWriter *manager, Datagram &me, bool &h
99519951
<< "Unsupported bam-texture-mode: " << (int)file_texture_mode << "\n";
99529952
}
99539953

9954-
if (filename.empty() && do_has_bam_rawdata(cdata)) {
9955-
// If we don't have a filename, we have to store rawdata anyway.
9956-
has_rawdata = true;
9954+
if (filename.empty()) {
9955+
if (do_has_bam_rawdata(cdata) || cdata->_has_clear_color) {
9956+
// If we don't have a filename, we have to store rawdata anyway.
9957+
has_rawdata = true;
9958+
}
99579959
}
99589960

99599961
me.add_string(get_name());

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy