Browse Source

fix palettized egg files

David Rose 21 years ago
parent
commit
e561cc0046
1 changed files with 3 additions and 1 deletions
  1. 3 1
      panda/src/egg2pg/eggLoader.cxx

+ 3 - 1
panda/src/egg2pg/eggLoader.cxx

@@ -745,7 +745,9 @@ load_textures() {
     PT_EggTexture orig = (*ri).first;
     PT_EggTexture orig = (*ri).first;
     PT_EggTexture repl = (*ri).second;
     PT_EggTexture repl = (*ri).second;
 
 
-    _textures[orig] = _textures[repl];
+    TextureDef &def = _textures[orig];
+    def = _textures[repl];
+    def._egg_tex = orig;
   }
   }
 }
 }