[Bf-extensions-cvs] [8d3301f6] master: Material Library VX: fix error when clearing category
Philipp Oeser
noreply at git.blender.org
Thu Apr 19 09:47:12 CEST 2018
Commit: 8d3301f66c77e7b5a1f310a311d2055dbd473e09
Author: Philipp Oeser
Date: Thu Apr 19 09:15:08 2018 +0200
Branches: master
https://developer.blender.org/rBA8d3301f66c77e7b5a1f310a311d2055dbd473e09
Material Library VX: fix error when clearing category
===================================================================
M materials_library_vx/__init__.py
===================================================================
diff --git a/materials_library_vx/__init__.py b/materials_library_vx/__init__.py
index 4693b739..94532f49 100644
--- a/materials_library_vx/__init__.py
+++ b/materials_library_vx/__init__.py
@@ -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"
More information about the Bf-extensions-cvs
mailing list