Material Library VX: fix error when clearing category

This commit is contained in:
Philipp Oeser 2018-04-19 09:15:08 +02:00
parent f8a43cda93
commit 8d3301f66c
Notes: blender-bot 2023-02-14 19:29:55 +01:00
Referenced by issue #54701, Material Library VX - Add Active Material to library disfunctional
1 changed files with 1 additions and 4 deletions

View File

@ -484,11 +484,8 @@ if mat:
# self.current_library.materials[self.mat_index].category = cat
#remove mat from any category
else:
matnode = xml.find("material", mat.name, lib)
if matnode:
xml.deleteNode(matnode)
mat.category = ""
self.current_library.materials[self.mat_index].category = ""
self.all_materials[self.mat_index].category = ""
else:
return "WARNING", "Select a material"