Fix #105096: Material Utilities: Clean Material Slots fails to remove unused slots #105098

Merged
Thomas Barlow merged 2 commits from Mysteryem/blender-addons:fix_105096_material_utilities_clean_slots into main 2024-01-11 12:23:50 +01:00

2 Commits

Author SHA1 Message Date
d979e7c818 Increase Material Utilities version following bug fix 2023-12-30 17:25:10 +00:00
54295f0f9f Fix #105096: Material Utilities: Clean Material Slots fails to remove unused slots
The code was removing material slots while iterating through them which
is generally a bad idea, and it stopped working as the addon expected in
Blender 3.0+.

The slots are now removed by counting how many slots there are and then
removing that number of slots.
2023-12-30 17:12:51 +00:00