Skip to content

Commit

Permalink
Conform cache naming to the other cache usages
Browse files Browse the repository at this point in the history
  • Loading branch information
tonihele committed Oct 23, 2023
1 parent a7227c0 commit 0244dee
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -619,14 +619,14 @@ protected byte[] getBytes(int bufferIndex, String uri, Integer bufferLength) thr
public Material getMaterial(int materialIndex) throws IOException {

// Get from cache
Material material = fetchFromCache("Material", materialIndex, Material.class);
Material material = fetchFromCache("materials", materialIndex, Material.class);
if (material != null) {
return material;
}

material = readMaterial(materialIndex);

addToCache("Material", materialIndex, material, materials.size());
addToCache("materials", materialIndex, material, materials.size());

return material;
}
Expand Down

0 comments on commit 0244dee

Please sign in to comment.