System Information
Operating system: Windows-10-10.0.19045-SP0 64 Bits
Graphics card: NVIDIA GeForce RTX 2080 Ti/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 522.25
Blender Version
Broken: version: 3.3.1, branch: master, commit date: 2022-10-04 18:35, hash: rBb292cfe5a936
Worked: probably never
Short description of error
When you create image texture node, select the image datablock and then drag the image input socket into an empty group input socket, a new image datablock user will be created (probably due to the image data type group input default value being hidden from the UI). Every copied instances of the group input node then counts as another user of this image datablock. Even if the image datablock is cleared from the image texture, the group inputs are still its user, so even when the image datablock has no real users in the file, it can not be purged
Exact steps for others to reproduce the error
- Open attached file or:
- Select the default cube, create a new GN node network, and drop in image texture node
- Open any image file from the Image Texture node
- Once image is opened and used by Image Texture node, drag the image input socket into empty socket of the Group Input node
- Duplicate the group input node couple of times
- Disconnect the Image Texture connection from the Group Input node
- Click the X button on the Image Texture node to unlink the image from the node
- Go to File->Clean Up->Recursive Unused Datablocks
- Set outliner to Blend file view, and notice the image is there
Result: Image can't be purged from the blender file even if it has no real users, and user can not remove the references to the image from the group input nodes
Expected: Either Group Input nodes should not hold references to image datablocks, or the Image data type sockets should have default value exposed, so user can clear it.
