Amaranth toolset: list users for datablock razes error on finding images #98252

Closed
opened 2022-05-19 12:07:55 +02:00 by Michael Soluyanov · 8 comments

System Information
Operating system: Windows-10-10.0.19044-SP0 64 Bits
Graphics card: GeForce RTX 2060/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 456.38

Blender Version
Broken: version: 3.1.2, branch: master, commit date: 2022-03-31 17:40, hash: blender/blender@cc66d1020c
Worked: 2.79

Short description of error
Amaranth toolset: list users for datablock razes error on finding images.

Python: Traceback (most recent call last):
File "C:\Users\msoluyanov\Downloads\blender-3.2.0-beta+v32.018acc568893-windows.amd64-release\3.2\scripts\addons\amaranth\scene\debug.py", line 681, in execute
  ar.spaces.active.background_images:
AttributeError: 'SpaceView3D' object has no attribute 'background_images'

The background images have been removed in 2.8 so that this check have to be removed. Correct file:

debug.py

Exact steps for others to reproduce the error

  1. Open any file with images. Enable Amaranth toolset add-on.

  2. In scene tab open scene debug. In list users for datablock section select image, choose any image from file and press the button List Users for Datablock

  3. The error will be shown

Expected result:

image.png

**System Information** Operating system: Windows-10-10.0.19044-SP0 64 Bits Graphics card: GeForce RTX 2060/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 456.38 **Blender Version** Broken: version: 3.1.2, branch: master, commit date: 2022-03-31 17:40, hash: `blender/blender@cc66d1020c` Worked: 2.79 **Short description of error** Amaranth toolset: list users for datablock razes error on finding images. ``` Python: Traceback (most recent call last): File "C:\Users\msoluyanov\Downloads\blender-3.2.0-beta+v32.018acc568893-windows.amd64-release\3.2\scripts\addons\amaranth\scene\debug.py", line 681, in execute ar.spaces.active.background_images: AttributeError: 'SpaceView3D' object has no attribute 'background_images' ``` The background images have been removed in 2.8 so that this check have to be removed. Correct file: [debug.py](https://archive.blender.org/developer/F13089420/debug.py) **Exact steps for others to reproduce the error** 1. Open any file with images. Enable Amaranth toolset add-on. 2. In **scene** tab open **scene debug**. In **list users for datablock** section select image, choose any image from file and press the button **List Users for Datablock** 3. The error will be shown Expected result: ![image.png](https://archive.blender.org/developer/F13089430/image.png)
Author
Member

Added subscriber: @crantisz

Added subscriber: @crantisz
Member

Added subscriber: @PratikPB2123

Added subscriber: @PratikPB2123
Member

Changed status from 'Needs Triage' to: 'Confirmed'

Changed status from 'Needs Triage' to: 'Confirmed'
Member

Added subscriber: @pablovazquez

Added subscriber: @pablovazquez
Pablo Vazquez self-assigned this 2022-05-20 12:33:04 +02:00
Member

Thanks for the report!

Can confirm. Will look into it.

Thanks for the report! Can confirm. Will look into it.

This issue was referenced by 4a522d353a

This issue was referenced by 4a522d353a585e6986ac7c98c1d0decadc7db916
Member

Changed status from 'Confirmed' to: 'Resolved'

Changed status from 'Confirmed' to: 'Resolved'
Member

Finally found time to fix this. Thanks for the report!

I noticed in the file you uploaded that you removed the check altogether, that would have fixed it but would also make the operator miss images used as background images in Cameras, so I added a check for that.

I also went ahead and added a check for images used by Empty objects type Image.

Finally found time to fix this. Thanks for the report! I noticed in the file you uploaded that you removed the check altogether, that would have fixed it but would also make the operator miss images used as background images in Cameras, so I added a check for that. I also went ahead and added a check for images used by Empty objects type Image.
Sign in to join this conversation.
No Milestone
No project
No Assignees
4 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender-addons#98252
No description provided.