def reloadTexture(self): TexturePool.releaseAllTextures() tex = loader.loadTexture('custom.png') tex.setMinfilter(Texture.FTLinearMipmapLinear) tex.setMagfilter(Texture.FTLinear) self.legs.find('**/' + self.shoesOptions[self.shoesChoice]).setTexture( tex, 1)