Material Library VX: fix error when clearing category
This commit is contained in:
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
|
@ -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"
|
||||
|
||||
|
|
Loading…
Reference in New Issue