Lets say we have 1024x1024 PNG texture called Texture.png I Have multiple materials using the same texture, on import the textures were automaticly renamed to .001 .002 .003 etc. And Im out of GPU memory
Is Texture.png and Texture.001.png just a single texture in the GPU memory or they are occupiing new space with each instance?
EDIT: this works on console, but not in practice, images are still there...
import bpy
for img in bpy.data.images:
print("%s" % img.name)
if( ".0" in img.name):
img.name=img.name[:-4]
print("%s" % img.name)