mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 02:42:49 -04:00
minor bugfix
This commit is contained in:
parent
0e41e68d31
commit
5f85e58acd
@ -227,10 +227,11 @@ process_pfm(const Filename &input_filename, PfmFile &file) {
|
|||||||
if (tex == NULL) {
|
if (tex == NULL) {
|
||||||
nout << "Couldn't find " << _vistex_filename << "\n";
|
nout << "Couldn't find " << _vistex_filename << "\n";
|
||||||
} else {
|
} else {
|
||||||
|
tex->set_minfilter(Texture::FT_linear_mipmap_linear);
|
||||||
mesh.set_texture(tex);
|
mesh.set_texture(tex);
|
||||||
}
|
if (tex->has_alpha(tex->get_format())) {
|
||||||
if (tex->has_alpha(tex->get_format())) {
|
mesh.set_transparency(TransparencyAttrib::M_dual);
|
||||||
mesh.set_transparency(TransparencyAttrib::M_dual);
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
mesh.set_name(input_filename.get_basename_wo_extension());
|
mesh.set_name(input_filename.get_basename_wo_extension());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user