Broken: 2.72b 9e963ae
I have an addon that adds siding and you can add materials to that siding with it. Some of the types of siding it adds a image texture to and if you generate the material multiple times and check how many users the image has it says a high number, when really only one material is using it. My code works by adding in an extra material and then using that material to replace the one on the object and then deleting the temporary one. So I don't know if it is just not updating that the material is deleted and not using that image anymore? Here is my code:
- Run "JARCH_siding.py" from the text editor
- Add Siding "View 3D > Add > Mesh > JARCH Vis > Add Siding
- Click "Cycles Materials"
- Add image texture
- Hit "Generate" several times, note how memory usage jumps
- Go to the node editor and note the number of users on the image.
The part of code that adds the materials starts at line 1727