Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Oeser <info@graphics-engineer.com>2018-04-19 10:15:08 +0300
committerPhilipp Oeser <info@graphics-engineer.com>2018-04-19 10:19:43 +0300
commit8d3301f66c77e7b5a1f310a311d2055dbd473e09 (patch)
tree3adc52393140e5ef83ec664923d00b8b60855348 /materials_library_vx
parentf8a43cda938c0e037c084f15d410d18dabc31b60 (diff)
Material Library VX: fix error when clearing category
Diffstat (limited to 'materials_library_vx')
-rw-r--r--materials_library_vx/__init__.py5
1 files changed, 1 insertions, 4 deletions
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"