Materials Library VX NoneType error with Preview and Apply #91115

Closed
opened 2021-09-01 18:02:02 +02:00 by Reiner Prokein · 5 comments

System Information
Operating system: Windows-10-10.0.19041-SP0 64 Bits
Graphics card: GeForce GTX 1060 6GB/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 461.09

Blender Version
Broken: version: 3.0.0 Alpha, branch: master, commit date: 2021-08-29 02:11, hash: blender/blender@2f7258d618
Worked: (newest version of Blender that worked as expected)

Short description of error
When you select a libary in the Materials Libary VX, but no library item, and click at the Apply to Selected button, then you get an error.

Exact steps for others to reproduce the error
[Please describe the exact steps needed to reproduce the issue]
[Based on the default startup or an attached .blend file (as simple as possible)]

  • Activate the material library VX addon
  • Navigate to Material Properties and to the Material Library VX
  • Choose one of the libraries. But don't choose any content of it
  • Click at the Apply to Selected button or the Preview Material button

The error itself is logical. There is no library item selected. And so there is also nothing to apply. But the better way would be to catch this error message and display a warning instead.

matlibvxnoneerror.jpg

2021-09-01 18-00-11.mp4

**System Information** Operating system: Windows-10-10.0.19041-SP0 64 Bits Graphics card: GeForce GTX 1060 6GB/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 461.09 **Blender Version** Broken: version: 3.0.0 Alpha, branch: master, commit date: 2021-08-29 02:11, hash: `blender/blender@2f7258d618` Worked: (newest version of Blender that worked as expected) **Short description of error** When you select a libary in the Materials Libary VX, but no library item, and click at the Apply to Selected button, then you get an error. **Exact steps for others to reproduce the error** [Please describe the exact steps needed to reproduce the issue] [Based on the default startup or an attached .blend file (as simple as possible)] - Activate the material library VX addon - Navigate to Material Properties and to the Material Library VX - Choose one of the libraries. But don't choose any content of it - Click at the Apply to Selected button or the Preview Material button The error itself is logical. There is no library item selected. And so there is also nothing to apply. But the better way would be to catch this error message and display a warning instead. ![matlibvxnoneerror.jpg](https://archive.blender.org/developer/F10360855/matlibvxnoneerror.jpg) [2021-09-01 18-00-11.mp4](https://archive.blender.org/developer/F10360862/2021-09-01_18-00-11.mp4)
Author

Added subscriber: @tiles

Added subscriber: @tiles
Member

Added subscriber: @PratikPB2123

Added subscriber: @PratikPB2123
Member

Hi, thanks for the report. I can confirm with 3.0.0: 42546db49089

But same issue already exists on tracker: #84444 (Material Library VX: Exception when attempting to apply a material without one existing)

Will merge this into #84444 :)

Hi, thanks for the report. I can confirm with 3.0.0: `42546db49089` But same issue already exists on tracker: #84444 (Material Library VX: Exception when attempting to apply a material without one existing) Will merge this into `#84444` :)
Member

Closed as duplicate of #84444

Closed as duplicate of #84444
Author

Ah, had overlooked it. Thanks :)

Ah, had overlooked it. Thanks :)
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 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#91115
No description provided.