"clean material slot" of material utils add-on not work #116651 #105096

Closed
opened 2023-12-30 16:14:51 +01:00 by nocivo · 2 comments

System Information
Operating system: Linux-6.6.8-200.fc39.x86_64-x86_64-with-glibc2.38 64 Bits, X11 UI
Graphics card: NVIDIA GeForce GTX 1060 6GB/PCIe/SSE2 NVIDIA Corporation 4.6.0 NVIDIA 545.29.06

Blender Version
Broken: version: 4.0.2, branch: blender-v4.0-release, commit date: 2023-12-05 07:41, hash: 9be62e85b727
Worked: 2.93.18

Addon Information
Name: Material Utilities (2, 2, 0)
Author: MichaleW, ChrisHinde

Short description of error
The "Clean Material Slots" function in the Material Utils add-on is not working as expected. Instead of removing unassigned slots, it randomly reassigns slots to different polygons. Additionally, it fails to clean the unassigned slot, resulting in a mess outcome. This occurs in both edit and object mode. This function operated correctly up to Blender version 2.93.18. However, it has become entirely inoperable since version 3.0.

Exact steps for others to reproduce the error

  • Open the default Blender scene.
  • Create 4 slots with different materials.
  • Assign three slots to three different polygons of the default cube.
  • Leave one slot empty.
  • Apply the "Clean Material Slots" function.
  • The result is chaotic. The empty slot is not deleted; instead, the add-on assigns it to some randomly selected polygon, and the other slots are reassigned to other randomly selected polygons. Please refer to the attached images, one before and one after applying the material slots.
**System Information** Operating system: Linux-6.6.8-200.fc39.x86_64-x86_64-with-glibc2.38 64 Bits, X11 UI Graphics card: NVIDIA GeForce GTX 1060 6GB/PCIe/SSE2 NVIDIA Corporation 4.6.0 NVIDIA 545.29.06 **Blender Version** Broken: version: 4.0.2, branch: blender-v4.0-release, commit date: 2023-12-05 07:41, hash: `9be62e85b727` Worked: 2.93.18 **Addon Information** Name: Material Utilities (2, 2, 0) Author: MichaleW, ChrisHinde **Short description of error** The "Clean Material Slots" function in the Material Utils add-on is not working as expected. Instead of removing unassigned slots, it randomly reassigns slots to different polygons. Additionally, it fails to clean the unassigned slot, resulting in a mess outcome. This occurs in both edit and object mode. This function operated correctly up to Blender version 2.93.18. However, it has become entirely inoperable since version 3.0. **Exact steps for others to reproduce the error** - Open the default Blender scene. - Create 4 slots with different materials. - Assign three slots to three different polygons of the default cube. - Leave one slot empty. - Apply the "Clean Material Slots" function. - The result is chaotic. The empty slot is not deleted; instead, the add-on assigns it to some randomly selected polygon, and the other slots are reassigned to other randomly selected polygons. Please refer to the attached images, one before and one after applying the material slots.
nocivo added the
Status
Needs Triage
Priority
Normal
Type
Report
labels 2023-12-30 16:14:51 +01:00
Member

Thanks for the report. I can confirm. But do we require this operator? it looks same as existing Cpp operator "Remove unused slots"

Thanks for the report. I can confirm. But do we require this operator? it looks same as existing Cpp operator "Remove unused slots"
Pratik Borhade added
Status
Confirmed
and removed
Status
Needs Triage
labels 2024-01-05 10:43:48 +01:00
Author

Thanks for the report. I can confirm. But do we require this operator? it looks same as existing Cpp operator "Remove unused slots"

I saw it now, I didn't know about this native function. A few years ago there wasn't, it seems to me. But I could be wrong. I always used that of Materials Utilities Addon. OK. However, a bug was corrected, which is always good.

thanks

> Thanks for the report. I can confirm. But do we require this operator? it looks same as existing Cpp operator "Remove unused slots" I saw it now, I didn't know about this native function. A few years ago there wasn't, it seems to me. But I could be wrong. I always used that of Materials Utilities Addon. OK. However, a bug was corrected, which is always good. thanks
Blender Bot added
Status
Resolved
and removed
Status
Confirmed
labels 2024-01-11 12:23:53 +01:00
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#105096
No description provided.