UI: support icon reloading (F8 key)

This commit is contained in:
Campbell Barton 2018-04-26 15:18:47 +02:00
parent 29e96158b9
commit 2fc5f3f378
1 changed files with 7 additions and 0 deletions

View File

@ -26,6 +26,13 @@ __all__ = (
"ToolSelectPanelHelper",
)
# Support reloading icons.
if "_icon_cache" in locals():
release = bpy.app.icons.release
for icon_value in _icon_cache.values():
release(icon_value)
del release
# (filename -> icon_value) map
_icon_cache = {}