diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2020-06-26 16:25:15 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2020-06-26 16:26:51 +0300 |
commit | 8b070b8a712d97be4d3954de6b6b5fdaa2c72dd3 (patch) | |
tree | 11d4c339710017adfdfdb8f7ee66868f7feb4bd7 | |
parent | 65f07a39b5cd1ccd3bf322379521750a3320d707 (diff) |
Fix T78199: reload scripts error when icon is used multiple times in toolbar
-rw-r--r-- | release/scripts/startup/bl_ui/space_toolsystem_common.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/release/scripts/startup/bl_ui/space_toolsystem_common.py b/release/scripts/startup/bl_ui/space_toolsystem_common.py index f052e42766c..080e66b59e7 100644 --- a/release/scripts/startup/bl_ui/space_toolsystem_common.py +++ b/release/scripts/startup/bl_ui/space_toolsystem_common.py @@ -36,7 +36,7 @@ __all__ = ( # Support reloading icons. if "_icon_cache" in locals(): release = bpy.app.icons.release - for icon_value in _icon_cache.values(): + for icon_value in set(_icon_cache.values()): if icon_value != 0: release(icon_value) del release |