Commit: f51fef63aab8b2bc16aefe5e42c4f6de8265ed98
Author: Campbell Barton
Date:   Sun May 17 17:17:02 2015 +1000
Branches: master
https://developer.blender.org/rBf51fef63aab8b2bc16aefe5e42c4f6de8265ed98

Fix own error deleting previews

===================================================================

M       release/scripts/modules/bpy/utils/previews.py

===================================================================

diff --git a/release/scripts/modules/bpy/utils/previews.py 
b/release/scripts/modules/bpy/utils/previews.py
index bd6b6a0..9659711 100644
--- a/release/scripts/modules/bpy/utils/previews.py
+++ b/release/scripts/modules/bpy/utils/previews.py
@@ -112,7 +112,7 @@ class ImagePreviewCollection(dict):
         _uuid_open.remove(self._uuid)
 
     def __delitem__(self, key):
-        _utils_previews.release(self._gen_key(name))
+        _utils_previews.release(self._gen_key(key))
         super().__delitem__(key)
 
     def __repr__(self):
@@ -145,6 +145,7 @@ def remove(pcoll):
 # don't complain about resources on exit (only unregister)
 import atexit
 
+
 def exit_clear_warning():
     del ImagePreviewCollection.__del__

_______________________________________________
Bf-blender-cvs mailing list
Bf-blender-cvs@blender.org
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to