Browse Source

alpabetize equivalent texture images

Zachary Pavlov 16 years ago
parent
commit
aaab6bc163
1 changed files with 4 additions and 0 deletions
  1. 4 0
      pandatool/src/palettizer/texturePlacement.cxx

+ 4 - 0
pandatool/src/palettizer/texturePlacement.cxx

@@ -1113,6 +1113,10 @@ operator ()(TexturePlacement *a, TexturePlacement *b) const {
 
 
   } else if (b->get_x_size() < a->get_x_size()) {
   } else if (b->get_x_size() < a->get_x_size()) {
     return true;
     return true;
+  } else if (a->get_name() < b->get_name()) {
+    //use this fall through case to let alphabetically smaller textures show up first
+    return true;
   }
   }
+  
   return false;
   return false;
 }
 }