fix bug with exclude-texture-scale

This commit is contained in:
David Rose 2007-05-16 19:15:49 +00:00
parent 4c7101e1c4
commit a2bf78fc37

View File

@ -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;
}
}