diff options
author | Sybren A. Stüvel <sybren@blender.org> | 2021-11-16 14:35:39 +0300 |
---|---|---|
committer | Sybren A. Stüvel <sybren@blender.org> | 2021-11-16 14:35:39 +0300 |
commit | 052c22199da8ccbccd36be2edfb043f78dcc0d6b (patch) | |
tree | 21017c3c797cf72cec15fdb101d501b051178bfd /release/scripts/startup | |
parent | da14a482f281e8d330ef5210ef22335a43eb726c (diff) |
Asset Browser: use one more refresh operator
Refreshing the assets requires `file_OT_asset_library_refresh` in the
asset browser, and `asset_OT_list_refresh` for the asset view. Both
are now done from `ASSET_OT_open_containing_blend_file`.
Diffstat (limited to 'release/scripts/startup')
-rw-r--r-- | release/scripts/startup/bl_operators/assets.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/release/scripts/startup/bl_operators/assets.py b/release/scripts/startup/bl_operators/assets.py index a8ee44037d6..58f02201905 100644 --- a/release/scripts/startup/bl_operators/assets.py +++ b/release/scripts/startup/bl_operators/assets.py @@ -148,6 +148,8 @@ class ASSET_OT_open_containing_blend_file(Operator): bpy.ops.file.refresh() if bpy.ops.asset.list_refresh.poll(): bpy.ops.asset.list_refresh() + if bpy.ops.file.asset_library_refresh.poll(): + bpy.ops.file.asset_library_refresh() self.cancel(context) return {'FINISHED'} |