From a2bf78fc37a485a9976a3716ef6069875fc15879 Mon Sep 17 00:00:00 2001 From: David Rose Date: Wed, 16 May 2007 19:15:49 +0000 Subject: [PATCH] fix bug with exclude-texture-scale --- panda/src/gobj/texture.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/panda/src/gobj/texture.cxx b/panda/src/gobj/texture.cxx index 5fd701ca3e..b6124da11e 100644 --- a/panda/src/gobj/texture.cxx +++ b/panda/src/gobj/texture.cxx @@ -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; } }