diff options
author | Campbell Barton <ideasman42@gmail.com> | 2015-05-17 10:17:02 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2015-05-17 10:26:01 +0300 |
commit | f51fef63aab8b2bc16aefe5e42c4f6de8265ed98 (patch) | |
tree | 793b57322f3823fd625625b3cd262cdf23f26c14 /release/scripts/modules/bpy | |
parent | 847ec075eb52664a9943b35dda6eb80acfc4f1cf (diff) |
Fix own error deleting previews
Diffstat (limited to 'release/scripts/modules/bpy')
-rw-r--r-- | release/scripts/modules/bpy/utils/previews.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/release/scripts/modules/bpy/utils/previews.py b/release/scripts/modules/bpy/utils/previews.py index bd6b6a0d304..965971139e4 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__ |