mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
fix bug with exclude-texture-scale
This commit is contained in:
parent
4c7101e1c4
commit
a2bf78fc37
@ -2866,12 +2866,11 @@ clear_prepared(PreparedGraphicsObjects *prepared_objects) {
|
||||
////////////////////////////////////////////////////////////////////
|
||||
void Texture::
|
||||
consider_rescale(PNMImage &pnmimage, const string &name) {
|
||||
string basename = _filename.get_basename();
|
||||
bool exclude = false;
|
||||
int num_excludes = exclude_texture_scale.get_num_unique_values();
|
||||
for (int i = 0; i < num_excludes && !exclude; ++i) {
|
||||
GlobPattern pat(exclude_texture_scale.get_unique_value(i));
|
||||
if (pat.matches(basename)) {
|
||||
if (pat.matches(name)) {
|
||||
exclude = true;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user